[py-svn] r21138 - in py/dist/py/rest/testing: . data
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Dec 13 16:56:17 CET 2005
Author: cfbolz
Date: Tue Dec 13 16:56:16 2005
New Revision: 21138
Added:
py/dist/py/rest/testing/data/tocdepth.rst2pdfconfig
Modified:
py/dist/py/rest/testing/data/example.rst2pdfconfig
py/dist/py/rest/testing/test_rst2pdf.py
Log:
add fallback test that test all rst2pdfconfig and txt files (only for the
nonexistance of crashes)
Modified: py/dist/py/rest/testing/data/example.rst2pdfconfig
==============================================================================
--- py/dist/py/rest/testing/data/example.rst2pdfconfig (original)
+++ py/dist/py/rest/testing/data/example.rst2pdfconfig Tue Dec 13 16:56:16 2005
@@ -1,5 +1,3 @@
rest_sources = ['part1.txt', 'part2.txt']
rest_options = ["--use-latex-toc", "--generator"] # generator is easy to test
-
-toc_depth = 1
Added: py/dist/py/rest/testing/data/tocdepth.rst2pdfconfig
==============================================================================
--- (empty file)
+++ py/dist/py/rest/testing/data/tocdepth.rst2pdfconfig Tue Dec 13 16:56:16 2005
@@ -0,0 +1,5 @@
+rest_sources = ['part1.txt', 'part2.txt']
+
+rest_options = ["--use-latex-toc", "--generator"] # generator is easy to test
+
+toc_depth = 1
Modified: py/dist/py/rest/testing/test_rst2pdf.py
==============================================================================
--- py/dist/py/rest/testing/test_rst2pdf.py (original)
+++ py/dist/py/rest/testing/test_rst2pdf.py Tue Dec 13 16:56:16 2005
@@ -24,3 +24,12 @@
assert pdf.check()
assert not tex.check()
pdf.remove()
+
+def test_process_all():
+ # fallback test: only checks that no exception is raised
+ def rec(p):
+ return p.check(dotfile=0)
+ for x in data.visit("*.txt", rec=rec):
+ yield process_rest_file, x
+ for x in data.visit("*.rst2pdfconfig", rec=rec):
+ yield process_configfile, x
More information about the pytest-commit
mailing list