MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_our_session_fixture_works

Function test_our_session_fixture_works

tests/store_test.py:36–41  ·  view source on GitHub ↗

There's a session fixture which makes `Store` invariantly raise to prevent writing to the home directory.

()

Source from the content-addressed store, hash-verified

34
35
36def test_our_session_fixture_works():
37 """There's a session fixture which makes `Store` invariantly raise to
38 prevent writing to the home directory.
39 """
40 with pytest.raises(AssertionError):
41 Store()
42
43
44def test_get_default_directory_defaults_to_home():

Callers

nothing calls this directly

Calls 1

StoreClass · 0.90

Tested by

no test coverage detected