Skip to content

Commit 4f8d365

Browse files
committed
adding instance check for Silenceable regardless of unabridged mode
1 parent 5b7fd7e commit 4f8d365

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_actions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,9 @@ def test_sets_silenced_attribute_false(self) -> None:
952952
assert is_silent(q1) is False
953953
assert is_silent(q2) is False
954954
assert is_silent(q3) is False
955+
assert isinstance(q1, Silenceable)
956+
assert isinstance(q2, Silenceable)
957+
assert isinstance(q3, Silenceable)
955958

956959
def test_sets_silenced_attribute_true(self) -> None:
957960
mock_settings = ScreenPySettings(UNABRIDGED_NARRATION=False)
@@ -966,6 +969,9 @@ def test_sets_silenced_attribute_true(self) -> None:
966969
assert is_silent(q1) is True
967970
assert is_silent(q2) is True
968971
assert is_silent(q3) is True
972+
assert isinstance(q1, Silenceable)
973+
assert isinstance(q2, Silenceable)
974+
assert isinstance(q3, Silenceable)
969975

970976
def test_kinking(self, Tester: Actor, mocker: MockerFixture) -> None:
971977
mock_clear = mocker.spy(the_narrator, "clear_backup")

0 commit comments

Comments
 (0)