(pytester: Pytester)
| 105 | |
| 106 | |
| 107 | def test_nose_setup_func_failure_2(pytester: Pytester) -> None: |
| 108 | pytester.makepyfile( |
| 109 | """ |
| 110 | values = [] |
| 111 | |
| 112 | my_setup = 1 |
| 113 | my_teardown = 2 |
| 114 | |
| 115 | def test_hello(): |
| 116 | assert values == [] |
| 117 | |
| 118 | test_hello.setup = my_setup |
| 119 | test_hello.teardown = my_teardown |
| 120 | """ |
| 121 | ) |
| 122 | reprec = pytester.inline_run() |
| 123 | reprec.assertoutcome(passed=1) |
| 124 | |
| 125 | |
| 126 | def test_nose_setup_partial(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected