(pytester: Pytester)
| 109 | |
| 110 | |
| 111 | def test_setUpModule_failing_no_teardown(pytester: Pytester) -> None: |
| 112 | testpath = pytester.makepyfile( |
| 113 | """ |
| 114 | values = [] |
| 115 | |
| 116 | def setUpModule(): |
| 117 | 0/0 |
| 118 | |
| 119 | def tearDownModule(): |
| 120 | values.append(1) |
| 121 | |
| 122 | def test_hello(): |
| 123 | pass |
| 124 | """ |
| 125 | ) |
| 126 | reprec = pytester.inline_run(testpath) |
| 127 | reprec.assertoutcome(passed=0, failed=1) |
| 128 | call = reprec.getcalls("pytest_runtest_setup")[0] |
| 129 | assert not call.item.module.values |
| 130 | |
| 131 | |
| 132 | def test_new_instances(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected