pytest fixture which returns filepath string and removes the file after tests complete.
()
| 24 | @staticmethod |
| 25 | @pytest.fixture() |
| 26 | def tmp_filepath(): |
| 27 | """ pytest fixture which returns filepath string and removes the file after tests |
| 28 | complete. """ |
| 29 | fp = os.path.join(_BASELINE_DIR, "test_query_baseline", "%s.txt" % random_str()) |
| 30 | yield fp |
| 31 | os.remove(fp) |
| 32 | |
| 33 | @pytest.mark.parametrize("query_str, test_file", test_queries) |
| 34 | @pytest.mark.timeout(60) |
nothing calls this directly
no test coverage detected