| skipped 7 lines |
8 | 8 | | """Creates `utils.RESULT_FILE` in `tmp_path` and returns it.""" |
9 | 9 | | utils.RESULT_FILE = tmp_path / "result.txt" |
10 | 10 | | utils.RESULT_FILE.open("w", encoding="utf-8") |
11 | | - | return utils.RESULT_FILE |
| 11 | + | yield utils.RESULT_FILE |
| 12 | + | utils.RESULT_FILE = None |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | @pytest.fixture |
| skipped 1 lines |
16 | 17 | | """Creates `utils.HTML_FILE` in `tmp_path` and returns it.""" |
17 | 18 | | utils.HTML_FILE = tmp_path / "index.html" |
18 | 19 | | utils.HTML_FILE.open("w", encoding="utf-8") |
19 | | - | return utils.HTML_FILE |
| 20 | + | yield utils.HTML_FILE |
| 21 | + | utils.HTML_FILE = None |
20 | 22 | | |