diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2008-04-07 02:15:06 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2008-04-07 02:15:06 +0000 |
commit | 108cd4bfa493ac4e99810ed809832bde9c2cf9d1 (patch) | |
tree | 317dce206de100cf2a9a7b73d15e811dc3775ec5 /functional_tests/doc_tests | |
parent | 6a3bed1c0cc260424c6fee52044373ef5bbd1bd6 (diff) | |
download | nose-108cd4bfa493ac4e99810ed809832bde9c2cf9d1.tar.gz |
Fixed another case where imported test gets wrong ancestors: selection of TestClass.test_method on commandline was not transplanting parent class.
Diffstat (limited to 'functional_tests/doc_tests')
-rw-r--r-- | functional_tests/doc_tests/test_issue145/imported_tests.rst | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/functional_tests/doc_tests/test_issue145/imported_tests.rst b/functional_tests/doc_tests/test_issue145/imported_tests.rst index a034c70..4a99c0a 100644 --- a/functional_tests/doc_tests/test_issue145/imported_tests.rst +++ b/functional_tests/doc_tests/test_issue145/imported_tests.rst @@ -79,3 +79,40 @@ packages are executed. Ran 2 tests in ...s <BLANKLINE> OK + +This also applies when only the specific tests are selected via the +command-line. + + >>> argv = [__file__, '-v', + ... os.path.join(support, 'package2c', 'test_module.py') + + ... ':TestClass.test_class'] + >>> run(argv=argv) # doctest: +REPORT_NDIFF + package2c setup + package2c.test_module.TestClass.test_class ... ok + <BLANKLINE> + ---------------------------------------------------------------------- + Ran 1 test in ...s + <BLANKLINE> + OK + >>> argv = [__file__, '-v', + ... os.path.join(support, 'package2c', 'test_module.py') + + ... ':TestCase.test'] + >>> run(argv=argv) # doctest: +REPORT_NDIFF + package2c setup + test (package2c.test_module.TestCase) ... ok + <BLANKLINE> + ---------------------------------------------------------------------- + Ran 1 test in ...s + <BLANKLINE> + OK + >>> argv = [__file__, '-v', + ... os.path.join(support, 'package2f', 'test_module.py') + + ... ':test_function'] + >>> run(argv=argv) # doctest: +REPORT_NDIFF + package2f setup + package2f.test_module.test_function ... ok + <BLANKLINE> + ---------------------------------------------------------------------- + Ran 1 test in ...s + <BLANKLINE> + OK |