summaryrefslogtreecommitdiff
path: root/test/DocutilsTestSupport.py
Commit message (Collapse)AuthorAgeFilesLines
* Use compatibility definitions for assertIn and assertNotIn only if required.milde2019-02-121-11/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8245 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Html5 writer: Correctly sort docinfo and subtitle into "parts" dict.milde2018-06-051-22/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8217 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop compatibility code for Python 2.4 and 2.5.milde2017-08-111-1/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use True/False for booleans. frontend.validate_ternary() returns True/False ↵milde2012-11-261-2/+2
| | | | | | or value. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7539 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Code cleanup and test html math output options.milde2012-10-251-4/+16
| | | | | | | | Based on patch by Dmitry Shachnev. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7534 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math, error_reporting, and urischemes moved to the utils package. milde2012-06-251-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7464 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop support for Python 2.3.milde2012-06-221-4/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7463 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixup: more save implementation of binary data output under Python 3.milde2012-06-131-1/+1
| | | | | | Prevent test error under Python 3. Add tests for FileOutput. Document. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7440 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3527842 ]. milde2012-06-041-6/+12
| | | | | | | | | | | | | | | | Under Python 3, converted tests and tools are now stored in the ``test3/`` and ``tools3/`` sub-directories and not installed in the PYTHONPATH. In order to make this work: - Make tests independent from the location of the ``test/`` directory. - Use converted sources from the ``build/`` directory for tests under Python 3. Remove functional/tests/stylesheet_path_html4css1.py made redunant by functional/tests/math_output_html.py. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7437 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* python 2.3 alias unittest.TestCase.assertTrue (possibly reverted on next ↵grubert2012-05-011-0/+4
| | | | | | release) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7400 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Replace deprecated aliases for assert methods with correct names.milde2012-02-031-7/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7337 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: Use True/False for boolean valuesmilde2012-01-191-18/+18
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed issue with line endings causing test suite failures with snapshot ↵goodger2010-07-211-0/+5
| | | | | | downloads (fixes SF bug 3015675) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6380 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fix testing under py3kmilde2010-05-071-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* One more cleanup as we require Python 2.3 now.milde2009-10-091-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6159 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Convert docutils to Python 3 (at least so that it runs the test suite.)gbrandl2009-04-011-13/+35
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5889 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Prepare for python 3.0: minimize "types" module where possible (gbrandl).grubert2008-11-301-6/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5738 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged abolish-userstring-haskey r5609:5616 to trunk.strank2008-07-281-1/+1
| | | | | | Backwards compatible changes for easier transition to py3.0. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5618 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* undo accidental commit to trunkabolish-userstring-haskey@5608strank2008-07-231-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5608 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Replace all has_key with the in operator.strank2008-07-231-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* reverted r5032; breaks Python 2.2 compatibilitywiemann2007-03-211-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5033 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced 'raw_unicode_escape' with 'ascii', 'backslashreplace' so we don't ↵wiemann2007-03-211-4/+4
| | | | | | get latin1 strings git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5032 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed Py21 compatibility codewiemann2006-11-131-17/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4812 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merged directives branch to trunk (r4375:4666);wiemann2006-07-121-15/+25
| | | | | | | | assert that block quote directives have content; improved test for block quote directives (test_block_quotes); deleted test_epigraphs_etc (replaced by test_block_quotes) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4667 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-211-4/+3
| | | | | | | | collapsed Author and Contact fields; use canonical email addresses for David and Felix; (I have reviewed the diff) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* allow sets of tests to have different settingsgoodger2006-04-011-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4460 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Moved template functionality from the PEP/HTML writer to the HTML writer. ↵goodger2006-03-311-2/+8
| | | | | | Expanded the fragments available in the ``parts`` attribute (via publish_parts fn). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4456 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* some cleanup:wiemann2006-01-091-4/+0
| | | | | | | removed unnecessary tearDown method; removed unnecessary roles parameter to Inliner.__init__ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4258 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved clear_roles to DocutilsTestSupport.CustomTestCase so that it is used ↵wiemann2006-01-091-2/+15
| | | | | | globally git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4254 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added absolute path of test root to sys.path because Py21/Py22 insert thewiemann2005-12-151-1/+2
| | | | | | | | *relative* path "test" at the beginning of sys.path when running "python2.2 test/alltests.py", which breaks the imports due to chdir; replaced os.path.sep with os.sep for Py21/Py22 compatibility git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* path fixesgoodger2005-12-151-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4217 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added path for extra modules (roman, optparse, textwrap)goodger2005-12-141-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4211 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* set sys.path to pick up the right Docutilsgoodger2005-12-031-3/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4131 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed references to default.css;wiemann2005-10-111-4/+0
| | | | | | to-do: update PEP writer (-> pep.css) and then docs/user/tools.txt git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3940 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added support for specifying runtime settings at the suite levelgoodger2005-09-151-20/+35
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3879 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* made _stylesheet_required setting default to 0,wiemann2005-08-241-1/+0
| | | | | | activating it in the rst2html.py front-end tool git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3830 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved comparison methods up to StandardTestCasewiemann2005-07-061-23/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3662 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* revert docutils.writers.null.Writer.output to None, now with ↵goodger2005-07-021-7/+13
| | | | | | docutils.io.Output and test support git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3646 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``_stylesheet_required`` internal setting, ↵goodger2005-06-281-0/+1
| | | | | | docutils.transforms.html.StylesheetCheck transform, docs, tests, and support. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3617 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed docutils.frontend._globally_deactivate_config_files (reverting much ↵goodger2005-06-231-5/+2
| | | | | | of rev. 3511), since it duplicates settings._disable_config functionality git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3567 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* issue a warning rather than an error when no stylesheet is given;wiemann2005-06-211-1/+1
| | | | | | default for "stylesheet" is now None, not -1 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3549 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* ensure that always a stylesheet path/URL is given;wiemann2005-06-201-0/+4
| | | | | | | I've seen to many poor-looking documents on the web due to the missing stylesheet -- people seem to miss that quite frequently git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3543 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed errorwiemann2005-06-191-5/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3517 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* simplified test codewiemann2005-06-191-22/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3516 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added deactivation of config file reading (for easier testing)wiemann2005-06-191-12/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3511 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed encoding/charset values in "html_prolog" & "html_head" parts, which ↵goodger2005-04-271-8/+13
| | | | | | should not have been interpolated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3268 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``html_prolog`` & ``html_head`` to HTML writer parts dictionary ↵goodger2005-04-261-2/+11
| | | | | | exposed by ``docutils.core.publish_parts``; updated tests & docs. At the request of Marcelo Huerta. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3257 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``html_body``, ``html_title``, & ``html_subtitle`` to HTML writer ↵goodger2005-04-241-0/+1
| | | | | | parts dictionary exposed by ``docutils.core.publish_parts``; updated tests. Added "``publish_parts`` Details" section to docs/api/publish.txt. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3251 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed typogoodger2005-04-241-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3249 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* ensure we are in the correct directory;wiemann2005-03-231-0/+3
| | | | | | the working directory is changed during execution of the test suite! git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3098 929543f6-e4f2-0310-98a6-ba3bd3dd1d04