summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-25 06:45:10 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-25 06:45:10 +0000
commit05c7d3fa628841c5b4f90a66e940a736ad0ef5f2 (patch)
treed2f283c73be77e39d671f70bbf289fb740b86377 /repoze
parent0ac7b075f76b3989fe9eb763b73bab827c9deccd (diff)
downloadpyramid-05c7d3fa628841c5b4f90a66e940a736ad0ef5f2.tar.gz
pyramid-05c7d3fa628841c5b4f90a66e940a736ad0ef5f2.tar.bz2
pyramid-05c7d3fa628841c5b4f90a66e940a736ad0ef5f2.zip
This module isn't activated yet, because manuel has a small bug in it that I've committed a patch for on a branch.
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/tests/test_docs.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_docs.py b/repoze/bfg/tests/test_docs.py
new file mode 100644
index 000000000..a00171842
--- /dev/null
+++ b/repoze/bfg/tests/test_docs.py
@@ -0,0 +1,35 @@
+import unittest
+
+if 0:
+ # no released version of manuel actually works with :lineno:
+ # settings yet
+ class ManuelDocsCase(unittest.TestCase):
+ def __new__(self, test):
+ return getattr(self, test)()
+
+ @classmethod
+ def test_docs(cls):
+ import os
+ import pkg_resources
+ import manuel.testing
+ import manuel.codeblock
+ import manuel.capture
+ import manuel.ignore
+ m = manuel.ignore.Manuel()
+ m += manuel.codeblock.Manuel()
+ m += manuel.capture.Manuel()
+ docs = []
+
+ egg_path = pkg_resources.get_distribution('repoze.bfg').location
+ path = os.path.join(egg_path, 'docs')
+ for root, dirs, files in os.walk(path):
+ for ignore in ('.svn', '.build', '.hg', '.git', 'CVS'):
+ if ignore in dirs:
+ dirs.remove(ignore)
+
+ for filename in files:
+ if filename.endswith('.rst'):
+ docs.append(os.path.join(root, filename))
+
+ print path
+ return manuel.testing.TestSuite(m, *docs)