File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def test_it_uses_shell_or_not_as_specified(self, case):
133
133
def test_it_logs_if_it_uses_a_shell (self , case ):
134
134
"""``shell=`` in the log message agrees with what is passed to `Popen`."""
135
135
value_in_call , value_from_class = case
136
- with self .assertLogs (cmd ._logger , level = logging .DEBUG ) as log_watcher :
136
+ with self .assertLogs (cmd .__name__ , level = logging .DEBUG ) as log_watcher :
137
137
mock_safer_popen = self ._do_shell_combo (value_in_call , value_from_class )
138
138
self ._assert_logged_for_popen (log_watcher , "shell" , mock_safer_popen .call_args .kwargs ["shell" ])
139
139
@@ -143,7 +143,7 @@ def test_it_logs_if_it_uses_a_shell(self, case):
143
143
)
144
144
def test_it_logs_istream_summary_for_stdin (self , case ):
145
145
expected_summary , istream_argument = case
146
- with self .assertLogs (cmd ._logger , level = logging .DEBUG ) as log_watcher :
146
+ with self .assertLogs (cmd .__name__ , level = logging .DEBUG ) as log_watcher :
147
147
self .git .execute (["git" , "version" ], istream = istream_argument )
148
148
self ._assert_logged_for_popen (log_watcher , "stdin" , expected_summary )
149
149
You can’t perform that action at this time.
0 commit comments