This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user