[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/onlinehelp/ added a test for source type guessing of HTML Files

Eckart Hertzler eckart at hertzler.de
Wed May 26 12:33:28 EDT 2004


Log message for revision 25013:

added a test for source type guessing of HTML Files



-=-
Modified: Zope3/trunk/src/zope/app/onlinehelp/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/onlinehelp/__init__.py	2004-05-26 15:58:58 UTC (rev 25012)
+++ Zope3/trunk/src/zope/app/onlinehelp/__init__.py	2004-05-26 16:33:26 UTC (rev 25013)
@@ -62,6 +62,14 @@
     >>> topic.type
     'zope.source.stx'
 
+    HTML files are treated as structured text files
+    >>> path = os.path.join(testdir(), 'help.html')
+    >>> topic = OnlineHelpTopic('Help',path)
+
+    The type should still be structured text
+    >>> topic.type
+    'zope.source.stx'
+
     >>> path = os.path.join(testdir(), 'help.rst')
     >>> topic = OnlineHelpTopic('Help',path)
 

Added: Zope3/trunk/src/zope/app/onlinehelp/tests/help.html
===================================================================
--- Zope3/trunk/src/zope/app/onlinehelp/tests/help.html	2004-05-26 15:58:58 UTC (rev 25012)
+++ Zope3/trunk/src/zope/app/onlinehelp/tests/help.html	2004-05-26 16:33:26 UTC (rev 25013)
@@ -0,0 +1 @@
+This is a STX help!
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/onlinehelp/tests/help.html
___________________________________________________________________
Name: svn:eol-style
   + native




More information about the Zope3-Checkins mailing list