MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / tmp_filepath

Method tmp_filepath

tests/test_noninteractive_mode.py:26–31  ·  view source on GitHub ↗

pytest fixture which returns filepath string and removes the file after tests complete.

()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

random_strFunction · 0.85

Tested by

no test coverage detected