MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / setup_and_teardown

Method setup_and_teardown

tests/test_excel_store.py:203–211  ·  view source on GitHub ↗

Setup and teardown for each test

(self, tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

201
202 @pytest.fixture(autouse=True)
203 def setup_and_teardown(self, tmp_path, monkeypatch):
204 """Setup and teardown for each test"""
205 # Change to temp directory
206 monkeypatch.chdir(tmp_path)
207 # Clear singleton instances before each test
208 ExcelStoreBase._instances.clear()
209 yield
210 # Cleanup after test
211 ExcelStoreBase._instances.clear()
212
213 def test_get_instance_returns_same_instance(self):
214 """Test that get_instance returns the same instance for same parameters"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected