diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-04-16 17:25:11 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-04-16 17:25:11 +0000 |
commit | 2051b288558683c416924972bd4c53ab6bb6535d (patch) | |
tree | ffbdd5db352d9d0dacf66e78e9fa785c7ef6cb9d /functional_tests/support | |
parent | 8c9da94bf72df9aa834a8b7ed310cc46303de81d (diff) | |
download | nose-2051b288558683c416924972bd4c53ab6bb6535d.tar.gz |
Work in progress on loadTestsFromNames/context suite interaction
Diffstat (limited to 'functional_tests/support')
-rw-r--r-- | functional_tests/support/ltfn/state.py | 1 | ||||
-rw-r--r-- | functional_tests/support/ltfn/test_pak1/__init__.py | 13 | ||||
-rw-r--r-- | functional_tests/support/ltfn/test_pak1/test_mod.py | 12 | ||||
-rw-r--r-- | functional_tests/support/ltfn/test_pak2/__init__.py | 13 |
4 files changed, 39 insertions, 0 deletions
diff --git a/functional_tests/support/ltfn/state.py b/functional_tests/support/ltfn/state.py new file mode 100644 index 0000000..f931b21 --- /dev/null +++ b/functional_tests/support/ltfn/state.py @@ -0,0 +1 @@ +called = [] diff --git a/functional_tests/support/ltfn/test_pak1/__init__.py b/functional_tests/support/ltfn/test_pak1/__init__.py new file mode 100644 index 0000000..7087716 --- /dev/null +++ b/functional_tests/support/ltfn/test_pak1/__init__.py @@ -0,0 +1,13 @@ +from state import called + +def setup(): + called.append('test_pak1.setup') + +def teardown(): + called.append('test_pak1.teardown') + +def test_one_one(): + called.append('test_pak1.test_one_one') + +def test_one_two(): + called.append('test_pak1.test_one_two') diff --git a/functional_tests/support/ltfn/test_pak1/test_mod.py b/functional_tests/support/ltfn/test_pak1/test_mod.py new file mode 100644 index 0000000..dd565da --- /dev/null +++ b/functional_tests/support/ltfn/test_pak1/test_mod.py @@ -0,0 +1,12 @@ +from state import called + +def setup(): + called.append('test_pak1.test_mod.setup') + +def teardown(): + called.append('test_pak1.test_mod.teardown') + +def test_one_mod_one(): + called.append('test_pak1.test_mod.test_one_mod_one') + pass + diff --git a/functional_tests/support/ltfn/test_pak2/__init__.py b/functional_tests/support/ltfn/test_pak2/__init__.py new file mode 100644 index 0000000..bf9f452 --- /dev/null +++ b/functional_tests/support/ltfn/test_pak2/__init__.py @@ -0,0 +1,13 @@ +from state import called + +def setup(): + called.append('test_pak2.setup') + +def teardown(): + called.append('test_pak2.teardown') + +def test_two_one(): + called.append('test_pak2.test_two_one') + +def test_two_two(): + called.append('test_pak2.test_two_one') |