@@ -58,7 +58,7 @@ def _patch_assess_error(exc: Exception):
5858 return patch ("quantumvalidator.assessor.assess" , side_effect = exc )
5959
6060
61- def _patch_print_report ():
61+ def _patch_print_full_report ():
6262 return patch ("quantumvalidator.reporter.print_full_report" )
6363
6464
@@ -69,12 +69,12 @@ def _patch_print_report():
6969
7070class TestCheckCommand :
7171 def test_exits_0_on_safe (self ):
72- with _patch_assess (_make_safe_report ()), _patch_print_report ():
72+ with _patch_assess (_make_safe_report ()), _patch_print_full_report ():
7373 result = runner .invoke (app , ["check" , "example.com" ])
7474 assert result .exit_code == 0
7575
7676 def test_exits_1_on_unsafe (self ):
77- with _patch_assess (_make_unsafe_report ()), _patch_print_report ():
77+ with _patch_assess (_make_unsafe_report ()), _patch_print_full_report ():
7878 result = runner .invoke (app , ["check" , "example.com" ])
7979 assert result .exit_code == 1
8080
@@ -100,7 +100,7 @@ def test_exits_2_on_error_probe(self):
100100 verdict = Verdict .UNSAFE ,
101101 checks = [CheckResult ("connection" , Status .ERROR , None , "Connection refused" , None )],
102102 )
103- with _patch_assess (error_report ), _patch_print_report ():
103+ with _patch_assess (error_report ), _patch_print_full_report ():
104104 result = runner .invoke (app , ["check" , "example.com" ])
105105 assert result .exit_code == 2
106106
@@ -119,7 +119,7 @@ def fake_assess(target, **kw):
119119 return _make_safe_report ()
120120
121121 with patch ("quantumvalidator.assessor.assess" , side_effect = fake_assess ):
122- with _patch_print_report ():
122+ with _patch_print_full_report ():
123123 runner .invoke (app , ["check" , "--port" , "8443" , "example.com" ])
124124
125125 assert captured .get ("port" ) == 8443
@@ -132,7 +132,7 @@ def fake_assess(target, **kw):
132132 return _make_safe_report ()
133133
134134 with patch ("quantumvalidator.assessor.assess" , side_effect = fake_assess ):
135- with _patch_print_report ():
135+ with _patch_print_full_report ():
136136 runner .invoke (app , ["check" , "--timeout" , "30" , "example.com" ])
137137
138138 assert captured .get ("timeout" ) == 30
@@ -145,7 +145,7 @@ def fake_assess(target, **kw):
145145 return _make_safe_report ()
146146
147147 with patch ("quantumvalidator.assessor.assess" , side_effect = fake_assess ):
148- with _patch_print_report ():
148+ with _patch_print_full_report ():
149149 runner .invoke (app , ["check" , "-p" , "587" , "example.com" ])
150150
151151 assert captured .get ("port" ) == 587
@@ -158,7 +158,7 @@ def fake_assess(target, **kw):
158158 return _make_safe_report ()
159159
160160 with patch ("quantumvalidator.assessor.assess" , side_effect = fake_assess ):
161- with _patch_print_report ():
161+ with _patch_print_full_report ():
162162 runner .invoke (app , ["check" , "example.com" ])
163163
164164 assert captured .get ("port" ) is None
@@ -190,7 +190,7 @@ def fake_assess(target, **kw):
190190 return _make_safe_report ()
191191
192192 with patch ("quantumvalidator.assessor.assess" , side_effect = fake_assess ):
193- with _patch_print_report ():
193+ with _patch_print_full_report ():
194194 runner .invoke (app , ["check" , "example.com" ])
195195
196196 assert captured .get ("progress_cb" ) is not None
0 commit comments