3535 the_narrator ,
3636)
3737from screenpy .configuration import ScreenPySettings
38- from screenpy .protocols import Silenceable
3938from screenpy .speech_tools import is_silent
4039
4140from .unittest_protocols import ErrorQuestion
@@ -863,13 +862,6 @@ def test_implements_protocol(self) -> None:
863862 assert isinstance (q1 , Describable )
864863 assert isinstance (q2 , Describable )
865864 assert isinstance (q3 , Describable )
866- assert isinstance (q1 , Silenceable )
867- assert isinstance (q2 , Silenceable )
868- assert isinstance (q3 , Silenceable )
869-
870- assert not isinstance (FakeQuestion (), Silenceable )
871- assert not isinstance (FakeAction (), Silenceable )
872- assert not isinstance (FakeResolution (), Silenceable )
873865
874866 def test_passthru_attribute (self ) -> None :
875867 a = FakeAction ()
@@ -946,15 +938,12 @@ def test_sets_silenced_attribute_false(self) -> None:
946938 q2 = Silently (FakeAction ())
947939 q3 = Silently (FakeResolution ())
948940
949- assert q1 . _silenced is False
950- assert q2 . _silenced is False
951- assert q3 . _silenced is False
941+ assert not hasattr ( q1 , "_silenced" )
942+ assert not hasattr ( q2 , "_silenced" )
943+ assert not hasattr ( q3 , "_silenced" )
952944 assert is_silent (q1 ) is False
953945 assert is_silent (q2 ) is False
954946 assert is_silent (q3 ) is False
955- assert isinstance (q1 , Silenceable )
956- assert isinstance (q2 , Silenceable )
957- assert isinstance (q3 , Silenceable )
958947
959948 def test_sets_silenced_attribute_true (self ) -> None :
960949 mock_settings = ScreenPySettings (UNABRIDGED_NARRATION = False )
@@ -969,9 +958,6 @@ def test_sets_silenced_attribute_true(self) -> None:
969958 assert is_silent (q1 ) is True
970959 assert is_silent (q2 ) is True
971960 assert is_silent (q3 ) is True
972- assert isinstance (q1 , Silenceable )
973- assert isinstance (q2 , Silenceable )
974- assert isinstance (q3 , Silenceable )
975961
976962 def test_kinking (self , Tester : Actor , mocker : MockerFixture ) -> None :
977963 mock_clear = mocker .spy (the_narrator , "clear_backup" )
0 commit comments