Update tests/test_utils_snapshot.py
Run CI Tests / test (push) Successful in 32s

This commit is contained in:
2025-07-30 01:27:02 +02:00
parent b702759efb
commit 54234c13c7
+2 -2
View File
@@ -25,8 +25,8 @@ class FakeAdjustable(Adjustable):
return value
@pytest.fixture(autouse=True)
def clean_registry():
instances.cache_clear()
def clean_registry(monkeypatch):
monkeypatch.setattr('slic.utils.registry.instances', lambda _: [])
def test_snapshot_excludes_internal_by_default():
visible = FakeAdjustable("vis_id", "visible", False)