SF.net SVN: docutils:[9740 ] trunk/docutils/test/funct ional

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9740
          http://sourceforge.net/p/docutils/code/9740
Author:   milde
Date:     2024-06-06 14:02:54 +0000 (Thu, 06 Jun 2024)
Log Message:
-----------
Do not include INFO-level messages in XML writer functional test.

The functional tests for "docutils_xml" and for "pseudoxml" also test
the generation of INFO-level messages by setting `report_level: 1`.

This prevents use of the test output for the XML parser round-trip test:

* with `report_level: 1`, the original system_messages are preserved
  and new messages are generated for unreferenced targets :(

* with the default `report_level: 2`, the original system_messages are
  filtered out by the FilterMessages transform :(

-> Don't generate INFO-level messages in the XML writer test.
   (INFO-level messages are still tested with the "pseudoxml" writer.)

Modified Paths:
--------------
    trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
    trunk/docutils/test/functional/tests/standalone_rst_docutils_xml.py

Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml	2024-06-06 14:02:27 UTC (rev 9739)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml	2024-06-06 14:02:54 UTC (rev 9740)
@@ -349,9 +349,6 @@
                             <paragraph>Four</paragraph>
                         </list_item>
                     </enumerated_list>
-                    <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO">
-                        <paragraph>Enumerated list start value not ordinal-1: "3" (ordinal 3)</paragraph>
-                    </system_message>
                     <enumerated_list enumtype="upperalpha" prefix="" start="3" suffix=".">
                         <list_item>
                             <paragraph>C</paragraph>
@@ -360,9 +357,6 @@
                             <paragraph>D</paragraph>
                         </list_item>
                     </enumerated_list>
-                    <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO">
-                        <paragraph>Enumerated list start value not ordinal-1: "C" (ordinal 3)</paragraph>
-                    </system_message>
                     <enumerated_list enumtype="lowerroman" prefix="" start="3" suffix=".">
                         <list_item>
                             <paragraph>iii</paragraph>
@@ -371,9 +365,6 @@
                             <paragraph>iv</paragraph>
                         </list_item>
                     </enumerated_list>
-                    <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO">
-                        <paragraph>Enumerated list start value not ordinal-1: "iii" (ordinal 3)</paragraph>
-                    </system_message>
                 </list_item>
             </enumerated_list>
         </section>
@@ -770,9 +761,6 @@
             </section>
             <section dupnames="duplicate\ target\ names" ids="duplicate-target-names-1">
                 <title auto="1" refid="toc-entry-21"><generated classes="sectnum">2.13.2   </generated>Duplicate Target Names</title>
-                <system_message backrefs="duplicate-target-names-1" level="1" line="437" source="functional/input/data/standard.txt" type="INFO">
-                    <paragraph>Duplicate implicit target name: "duplicate target names".</paragraph>
-                </system_message>
                 <paragraph>Since there are two "Duplicate Target Names" section headers, we
                     cannot uniquely refer to either of them by name.  If we try to (like
                     this: <problematic ids="problematic-3" refid="system-message-5">`Duplicate Target Names`_</problematic>), an error is generated.</paragraph>
@@ -1777,32 +1765,5 @@
         <system_message backrefs="problematic-3" ids="system-message-5" level="3" line="439" source="functional/input/data/standard.txt" type="ERROR">
             <paragraph>Duplicate target name, cannot be used as a unique reference: "duplicate target names".</paragraph>
         </system_message>
-        <system_message level="1" line="159" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "target" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="404" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "another-target" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="474" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "image-target-1" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="475" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "image-target-2" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="476" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "image-target-3" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="640" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "target1" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="641" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "target2" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="686" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "docutils" is not referenced.</paragraph>
-        </system_message>
-        <system_message level="1" line="852" source="functional/input/data/standard.txt" type="INFO">
-            <paragraph>Hyperlink target "hyperlink targets" is not referenced.</paragraph>
-        </system_message>
     </section>
 </document>

Modified: trunk/docutils/test/functional/tests/standalone_rst_docutils_xml.py
===================================================================
--- trunk/docutils/test/functional/tests/standalone_rst_docutils_xml.py	2024-06-06 14:02:27 UTC (rev 9739)
+++ trunk/docutils/test/functional/tests/standalone_rst_docutils_xml.py	2024-06-06 14:02:54 UTC (rev 9740)
@@ -6,8 +6,6 @@
 writer_name = "docutils_xml"
 settings_overrides = {
     'sectsubtitle_xform': True,
-    # enable INFO-level system messages in this test:
-    'report_level': 1,
     # format output with indents and newlines
     'indents': True,
     }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



_______________________________________________
Docutils-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.