Fix test_build_html after latest docfields fix.

This commit is contained in:
Georg Brandl
2011-01-04 00:23:27 +01:00
parent 6219286df9
commit 5072e74a46
2 changed files with 11 additions and 5 deletions

View File

@@ -56,8 +56,8 @@ Testing object descriptions
.. class:: Time(hour, minute, isdst)
:param hour: The year.
:type hour: TimeInt
:param year: The year.
:type year: TimeInt
:param TimeInt minute: The minute.
:param isdst: whether it's DST
:type isdst: * some complex
@@ -68,8 +68,10 @@ Testing object descriptions
:ivar int hour: like *hour*
:ivar minute: like *minute*
:vartype minute: int
:param hour: Some parameter
:type hour: DuplicateType
:param hour: Duplicate param. Should not lead to crashes.
:type hour: Duplicate type.
:type hour: DuplicateType
C items

View File

@@ -187,9 +187,13 @@ HTML_XPATH = {
# custom sidebar
(".//h4", 'Custom sidebar'),
# docfields
(".//td[@class='field-body']/ul/li/strong", '^moo$'),
(".//td[@class='field-body']/ul/li/strong",
(".//td[@class='field-body']/strong", '^moo$'),
(".//td[@class='field-body']/strong",
tail_check(r'\(Moo\) .* Moo')),
(".//td[@class='field-body']/ul/li/strong", '^hour$'),
(".//td[@class='field-body']/ul/li/em", '^DuplicateType$'),
(".//td[@class='field-body']/ul/li/em",
tail_check(r'.* Some parameter')),
],
'contents.html': [
(".//meta[@name='hc'][@content='hcval']", ''),