1 https://bugs.launchpad.net/testscenarios/+bug/1930149
2 https://github.com/testing-cabal/testscenarios/issues/5
4 --- testscenarios-0.5.0/testscenarios/tests/test_testcase.py.orig
5 +++ testscenarios-0.5.0/testscenarios/tests/test_testcase.py
12 class TestTestWithScenarios(testtools.TestCase):
14 scenarios = testscenarios.scenarios.per_module_scenarios(
19 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
20 def test_no_scenarios_no_error(self):
21 class ReferenceTest(self.Implementation):
24 self.assertTrue(result.wasSuccessful())
25 self.assertEqual(1, result.testsRun)
27 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
28 def test_with_one_scenario_one_run(self):
29 class ReferenceTest(self.Implementation):
30 scenarios = [('demo', {})]
33 log[0][1].id(), EndsWith('ReferenceTest.test_pass(demo)'))
35 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
36 def test_with_two_scenarios_two_run(self):
37 class ReferenceTest(self.Implementation):
38 scenarios = [('1', {}), ('2', {})]
41 log[4][1].id(), EndsWith('ReferenceTest.test_pass(2)'))
43 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
44 def test_attributes_set(self):
45 class ReferenceTest(self.Implementation):
48 self.assertTrue(result.wasSuccessful())
49 self.assertEqual(2, result.testsRun)
51 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
52 def test_scenarios_attribute_cleared(self):
53 class ReferenceTest(self.Implementation):
56 self.assertEqual(None, log[0][1].scenarios)
57 self.assertEqual(None, log[4][1].scenarios)
59 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
60 def test_countTestCases_no_scenarios(self):
61 class ReferenceTest(self.Implementation):
62 def test_check_foo(self):
64 test = ReferenceTest("test_check_foo")
65 self.assertEqual(1, test.countTestCases())
67 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
68 def test_countTestCases_empty_scenarios(self):
69 class ReferenceTest(self.Implementation):
72 test = ReferenceTest("test_check_foo")
73 self.assertEqual(1, test.countTestCases())
75 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
76 def test_countTestCases_1_scenarios(self):
77 class ReferenceTest(self.Implementation):
78 scenarios = [('1', {'foo': 1, 'bar': 2})]
80 test = ReferenceTest("test_check_foo")
81 self.assertEqual(1, test.countTestCases())
83 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
84 def test_countTestCases_2_scenarios(self):
85 class ReferenceTest(self.Implementation):
88 test = ReferenceTest("test_check_foo")
89 self.assertEqual(2, test.countTestCases())
91 + @pytest.mark.skip(reason="always fails: https://github.com/testing-cabal/testscenarios/issues/5")
92 def test_debug_2_scenarios(self):
94 class ReferenceTest(self.Implementation):