Package trac :: Package wiki :: Package tests :: Module macros

Module macros

source code

Functions
 
add_pages(tc, names) source code
 
add_attachment(tc, realm, id, file) source code
 
image_setup(tc) source code
 
image_teardown(tc) source code
 
intertrac_setup(tc) source code
 
titleindex_teardown(tc) source code
 
titleindex2_setup(tc) source code
 
titleindex3_setup(tc) source code
 
titleindex4_setup(tc) source code
 
titleindex5_setup(tc) source code
 
recentchanges_setup(tc) source code
 
recentchanges_teardown(tc) source code
 
tracini_setup(tc) source code
 
tracini_teardown(tc) source code
 
test_suite() source code
Variables
  IMAGE_MACRO_TEST_CASES = ...
  INTERTRAC_MACRO_TEST_CASES = u'===========================...
  TITLEINDEX1_MACRO_TEST_CASES = ...
  TITLEINDEX2_MACRO_TEST_CASES = ...
  TITLEINDEX3_MACRO_TEST_CASES = ...
  TITLEINDEX4_MACRO_TEST_CASES = ...
  TITLEINDEX5_MACRO_TEST_CASES = ...
  RECENTCHANGES_MACRO_TEST_CASES = ...
  PAGEOUTLINE_MACRO_TEST_CASES = ...
  TRACINI_MACRO_TEST_CASES = u'============================== Tr...
  __package__ = 'trac.wiki.tests'

Imports: StringIO, os, tempfile, unittest, Attachment, BoolOption, ConfigSection, IntOption, ListOption, Option, locale_en, rmtree, datetime_now, format_date, utc, WikiPage, formatter


Variables Details

IMAGE_MACRO_TEST_CASES

Value:
u'''
============================== Image, no arguments
[[Image]]
------------------------------

============================== Image, no arguments
[[Image()]]
------------------------------
...

INTERTRAC_MACRO_TEST_CASES

Value:
u'''==============================
[[InterTrac]]
------------------------------
<p>
</p><table class="wiki intertrac"><tr><th><em>Prefix</em></th><th><em>\
Trac Site</em></th></tr><tr><td><strong>example</strong></td><td>Alias\
 for <strong>example2</strong></td></tr><tr><td><a href="https://gensh\
i.edgewall.org/timeline"><strong>genshi</strong></a></td><td><a href="\
...

TITLEINDEX1_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, default format
[[TitleIndex()]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/WikiStart">WikiStar\
t</a></li></ul></div><p>
</p>
...

TITLEINDEX2_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, default format
[[TitleIndex()]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/WikiEnd">WikiEnd</a\
></li><li><a href="/wiki/WikiStart">WikiStart</a></li></ul></div><p>
</p>
...

TITLEINDEX3_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, group format
[[TitleIndex(Wiki,format=group)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><strong>Wiki</strong><ul><li><stro\
ng>End</strong><ul><li><a href="/wiki/WikiEnd/First">WikiEnd/First</a>\
</li><li><a href="/wiki/WikiEnd/Second">WikiEnd/Second</a></li></ul></\
...

TITLEINDEX4_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex group and page with numbers \
(#7919)
[[TitleIndex(format=group)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><strong>0.11</strong><ul><li><stro\
ng>Group</strong><ul><li><a href="/wiki/0.11/GroupOne">0.11/GroupOne</\
...

TITLEINDEX5_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, hierarchy format with compl\
ex hierarchy
[[TitleIndex(format=hierarchy)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/TracDev">TracDev</a\
><ul><li><a href="/wiki/TracDev/ApiChanges">ApiChanges</a><ul><li><a h\
...

RECENTCHANGES_MACRO_TEST_CASES

Value:
u'''"
============================== RecentChanges, group option
[[RecentChanges()]]
[[RecentChanges(group=date)]]
[[RecentChanges(group=none)]]
[[RecentChanges(,2,group=none)]]
[[RecentChanges(Wiki,group=none)]]
[[RecentChanges(Wiki,1,group=none)]]
...

PAGEOUTLINE_MACRO_TEST_CASES

Value:
u'''"
==============================
[[PageOutline(a)]]
------------------------------
<p>
<div class="system-message"><strong>Macro PageOutline(a) failed</stron\
g><pre>Invalid macro argument <code>a</code></pre></div>
</p>
...

TRACINI_MACRO_TEST_CASES

Value:
u'''============================== TracIni, option with empty doc (#10\
940)
[[TracIni(section-42)]]
------------------------------
<p>
</p><div class="tracini"><h3 id="section-42-section"><code>[section-42\
]</code></h3><table class="wiki"><tbody><tr class="even" id="section-4\
2-option1-option"><td><a class="tracini-option" href="#section-42-opti\
...