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

This commit is contained in:
2025-07-29 23:59:21 +02:00
parent c2df238620
commit ce095e708c
+3 -3
View File
@@ -26,7 +26,7 @@ class FakeAdjustable(Adjustable):
def test_snapshot_excludes_internal_by_default():
"""By default, internal adjustables should be excluded."""
visible = FakeAdjustable("visible", internal=False)
hidden = FakeAdjustable("internal", internal=True)
@@ -37,7 +37,7 @@ def test_snapshot_excludes_internal_by_default():
def test_snapshot_include_internal_flag():
"""With include_internal=True, internal adjustables should be included."""
visible = FakeAdjustable("visible", internal=False)
hidden = FakeAdjustable("internal", internal=True)
@@ -49,7 +49,7 @@ def test_snapshot_include_internal_flag():
def test_snapshot_empty_result():
"""Return an empty list when there are no adjustables."""
with patch("slic.utils.typecast.instances", return_value=[]):
result = snapshot()
assert isinstance(result, list)