diff options
author | Domen Kožar <domen@dev.si> | 2012-08-27 20:09:57 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2012-08-27 20:09:57 +0200 |
commit | c0203576fea1823f22840e1ca652e8ddad685d04 (patch) | |
tree | a13bc401a369432d9bf1211f180b4882cffeb74d | |
parent | 90852641213e1c2528ac97125a61dc63ddfa95b5 (diff) | |
download | nose-c0203576fea1823f22840e1ca652e8ddad685d04.tar.gz |
add coverage2 fixture
-rw-r--r-- | functional_tests/support/coverage2/blah.py | 6 | ||||
-rw-r--r-- | functional_tests/support/coverage2/moo.py | 2 | ||||
-rw-r--r-- | functional_tests/support/coverage2/tests/test_covered.py | 8 |
3 files changed, 16 insertions, 0 deletions
diff --git a/functional_tests/support/coverage2/blah.py b/functional_tests/support/coverage2/blah.py new file mode 100644 index 0000000..ef6657c --- /dev/null +++ b/functional_tests/support/coverage2/blah.py @@ -0,0 +1,6 @@ +def dostuff(): + print 'hi' + + +def notcov(): + print 'not covered' diff --git a/functional_tests/support/coverage2/moo.py b/functional_tests/support/coverage2/moo.py new file mode 100644 index 0000000..7ad09bf --- /dev/null +++ b/functional_tests/support/coverage2/moo.py @@ -0,0 +1,2 @@ +def moo(): + print 'covered' diff --git a/functional_tests/support/coverage2/tests/test_covered.py b/functional_tests/support/coverage2/tests/test_covered.py new file mode 100644 index 0000000..034f984 --- /dev/null +++ b/functional_tests/support/coverage2/tests/test_covered.py @@ -0,0 +1,8 @@ +import blah +import moo + +def test_blah(): + blah.dostuff() + +def test_moo(): + moo.dostuff() |