1919
2020from tmuxp import Window , config , exc
2121from tmuxp ._compat import text_type
22- from tmuxp .testsuite .helpers import TmuxTestCase , stdouts
22+ from tmuxp .testsuite .helpers import TmuxTestCase , mute
2323from tmuxp .workspacebuilder import WorkspaceBuilder
2424
2525logger = logging .getLogger (__name__ )
@@ -883,8 +883,8 @@ class BeforeLoadScript(TmuxTestCase):
883883 - pane
884884 """
885885
886- @stdouts ()
887- def test_throw_error_if_retcode_error (self , stdout , stderr ):
886+ @mute ()
887+ def test_throw_error_if_retcode_error (self ):
888888 sconfig = kaptan .Kaptan (handler = 'yaml' )
889889 yaml = self .config_script_fails .format (
890890 fixtures_dir = fixtures_dir ,
@@ -909,8 +909,8 @@ def test_throw_error_if_retcode_error(self, stdout, stderr):
909909 msg = "Kills session if before_script exits with errcode"
910910 )
911911
912- @stdouts ()
913- def test_throw_error_if_file_not_exists (self , stdout , stderr ):
912+ @mute ()
913+ def test_throw_error_if_file_not_exists (self ):
914914 sconfig = kaptan .Kaptan (handler = 'yaml' )
915915 yaml = self .config_script_not_exists .format (
916916 fixtures_dir = fixtures_dir ,
@@ -941,8 +941,8 @@ def test_throw_error_if_file_not_exists(self, stdout, stderr):
941941 msg = "Kills session if before_script doesn't exist"
942942 )
943943
944- @stdouts ()
945- def test_true_if_test_passes (self , stdout , stderr ):
944+ @mute ()
945+ def test_true_if_test_passes (self ):
946946 assert (
947947 os .path .exists (os .path .join (fixtures_dir , 'script_complete.sh' ))
948948 )
@@ -961,8 +961,8 @@ def test_true_if_test_passes(self, stdout, stderr):
961961 with self .temp_session ():
962962 builder .build (session = self .session )
963963
964- @stdouts ()
965- def test_true_if_test_passes_with_args (self , * args ):
964+ @mute ()
965+ def test_true_if_test_passes_with_args (self ):
966966 assert (
967967 os .path .exists (os .path .join (fixtures_dir , 'script_complete.sh' ))
968968 )
0 commit comments