aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Consistent copyright headers.Waylan Limberg2018-07-271-0/+21
| | | | Fixes #435.
* Switch from nose to unittestWaylan Limberg2018-01-081-189/+0
| | | | | | | | | | | | | | | All file-based tests are now defined as unittest test cases via a metaclass which walks a directory and builds a unittest for each pair of test files. To run the tests just run `python -m unittest discover tests`. Or use tox as the tox config has been updated to run the new tests and all nose specific code has been removed. The test generator tools have been removed as well. If any changes or additions need to be made to tests, they should be implemented using the new framework rather than with the file-based tests. Eventually, only the PHP and pl tests should remain as file-based tests.
* Warnings should cause tests to fail.Waylan Limberg2018-01-041-0/+7
|
* Flake8 cleanup (mostly whitespace).Waylan Limberg2014-11-201-26/+41
| | | | | | Got all but a couple files in the tests (ran out of time today). Apparently I have been using some bad form for years (although a few things seemed to look better before the update). Anyway, conformant now.
* Updated generate code for tests refactor. Related to #333.Waylan Limberg2014-08-211-3/+3
|
* Refactored test framework to use YAML config files rather than INI. Fixes #333.Waylan Limberg2014-08-201-48/+62
|
* Updated testing framework to use PyTidyLib rather than uTidyLib for Python 3 ↵Waylan Limberg2013-03-131-21/+20
| | | | support.
* Testing framework now runs on Python 2 & 3 unmodified.Waylan Limberg2012-12-141-10/+10
|
* Normalize line endings in tests as git may alter them on Windows.Waylan Limberg2012-12-141-2/+3
| | | | | Without this, all SyntaxTests would fail from a git checkout on Windows. On other systems, it should have no effect.
* Fixed #115. Make sure all file objects are closed.Waylan Limberg2012-07-121-2/+5
|
* Added some fadfile commands to (re)generate tests when they are added or ↵Waylan Limberg2011-08-041-5/+38
| | | | updated.
* Python 3.2 made some changes to the configparser which broke the testing ↵Waylan Limberg2011-07-281-3/+3
| | | | framework. With a simple addition to our subclass (which we then make use of), this is an easy fix.
* Fixed a Python 2.4 incompatability in last commit. 'encode' only accepted ↵Waylan Limberg2011-07-281-1/+1
| | | | positional arguments back then.
* All internal encoding of output now uses the 'xmlcharrefreplace' error ↵Waylan Limberg2011-07-281-1/+1
| | | | handler. Also added a note to the docs. Anyone doing their own encoding of output should be as well.
* The Testing Framework will now pass any non-reserved args set in test.cfg ↵Waylan Limberg2011-04-291-6/+5
| | | | files as keyword arguments to Markdown for a given syntax test. As Markdown ignores unknown args, this should be safe and will allow testing of any newly added keywords without additional modification of the testing framework.
* Added run-tests.py script and added a helpful error message if nose is not ↵Waylan Limberg2010-02-131-5/+6
| | | | installed. Note the run-tests script will be used by simply running 'nosetests' from the commandline, so the hack in 'tests/__init__.py' has been removed.
* Moved test dir back out of markdown lib. We don't need to install the tests ↵Waylan Limberg2010-02-121-0/+117
in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc.