From 2a2f00915e19c885e7d9d62be027bc4be64407e0 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Fri, 26 Oct 2012 17:53:35 +0400 Subject: [PATCH] added tests for pytest runner --- python/testData/testRunner/env/pytest/test1.py | 9 +++++++++ python/testData/testRunner/env/pytest/test2.py | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 python/testData/testRunner/env/pytest/test1.py create mode 100644 python/testData/testRunner/env/pytest/test2.py diff --git a/python/testData/testRunner/env/pytest/test1.py b/python/testData/testRunner/env/pytest/test1.py new file mode 100644 index 000000000000..65016345eade --- /dev/null +++ b/python/testData/testRunner/env/pytest/test1.py @@ -0,0 +1,9 @@ +class TestPyTest: + def testOne(self): + assert 4 == 2*2 + + def testTwo(self): + assert True + +def testThree(): + assert 4 == 2*2 diff --git a/python/testData/testRunner/env/pytest/test2.py b/python/testData/testRunner/env/pytest/test2.py new file mode 100644 index 000000000000..b6c7b0887aa9 --- /dev/null +++ b/python/testData/testRunner/env/pytest/test2.py @@ -0,0 +1,16 @@ +class TestPyTest: + def testOne(self): + assert 5 == 2*2 + + def testTwo(self): + assert True + +def testThree(): + assert 4 == 2*2 + +def test_evens(): + for i in range(0, 5): + yield check_even, i, i*3 + +def check_even(n, nn): + assert n % 2 == 0 or nn % 2 == 0 \ No newline at end of file