@@ -15,15 +15,15 @@ class TestStaticValidatorIntegration(unittest.TestCase):
1515
1616 def setUp (self ):
1717 self .logger = setup_logging (LogLevel .CRITICAL )
18- self .console = Console (self .logger , is_silent = True )
18+ self .console = Console (self .logger , is_quiet = True )
1919
2020 def run_validator (self , solution_file : str , rules_file : str ) -> bool :
2121 """Helper function to run the validator with specific files."""
2222 config = AppConfig (
2323 solution_path = FIXTURES_DIR / solution_file ,
2424 rules_path = FIXTURES_DIR / rules_file ,
2525 log_level = LogLevel .CRITICAL ,
26- is_silent = True ,
26+ is_quiet = True ,
2727 stop_on_first_fail = False ,
2828 )
2929 validator = StaticValidator (config , self .console )
@@ -80,7 +80,7 @@ def test_run_with_malformed_rule_raises_error(self):
8080 solution_path = FIXTURES_DIR / "valid_code.py" ,
8181 rules_path = rules_path ,
8282 log_level = LogLevel .CRITICAL ,
83- is_silent = True ,
83+ is_quiet = True ,
8484 stop_on_first_fail = False ,
8585 )
8686 validator = StaticValidator (config , self .console )
@@ -164,7 +164,7 @@ def test_stop_on_first_fail_works(self):
164164 solution_path = FIXTURES_DIR / "p01_simple_program.py" ,
165165 rules_path = rules_path ,
166166 log_level = LogLevel .CRITICAL ,
167- is_silent = True ,
167+ is_quiet = True ,
168168 stop_on_first_fail = True ,
169169 )
170170 validator = StaticValidator (config , self .console )
@@ -246,7 +246,7 @@ class TestValidatorRobustness(unittest.TestCase):
246246
247247 def setUp (self ):
248248 self .logger = setup_logging (LogLevel .CRITICAL )
249- self .console = Console (self .logger , is_silent = True )
249+ self .console = Console (self .logger , is_quiet = True )
250250 self .valid_rules_path = FIXTURES_DIR / "r01_require_structure.json"
251251
252252 def run_validator (self , solution_file : str , rules_file : str ) -> bool :
@@ -255,7 +255,7 @@ def run_validator(self, solution_file: str, rules_file: str) -> bool:
255255 solution_path = FIXTURES_DIR / solution_file ,
256256 rules_path = FIXTURES_DIR / rules_file ,
257257 log_level = LogLevel .CRITICAL ,
258- is_silent = True ,
258+ is_quiet = True ,
259259 stop_on_first_fail = False ,
260260 )
261261 validator = StaticValidator (config , self .console )
@@ -272,7 +272,7 @@ def test_handles_empty_solution_file(self):
272272 solution_path = FIXTURES_DIR / "empty.py" ,
273273 rules_path = self .valid_rules_path ,
274274 log_level = LogLevel .CRITICAL ,
275- is_silent = True ,
275+ is_quiet = True ,
276276 stop_on_first_fail = False ,
277277 )
278278 # Ожидаем, что проверка провалится (т.к. в пустом файле нет нужных функций),
@@ -286,7 +286,7 @@ def test_raises_error_for_non_existent_solution_file(self):
286286 solution_path = FIXTURES_DIR / "non_existent_file.py" ,
287287 rules_path = self .valid_rules_path ,
288288 log_level = LogLevel .CRITICAL ,
289- is_silent = True ,
289+ is_quiet = True ,
290290 stop_on_first_fail = False ,
291291 )
292292 # Проверяем, что вызов .run() вызывает именно FileNotFoundError
@@ -300,7 +300,7 @@ def test_raises_error_for_malformed_json(self):
300300 solution_path = FIXTURES_DIR / "valid_code.py" ,
301301 rules_path = FIXTURES_DIR / "malformed.json" ,
302302 log_level = LogLevel .CRITICAL ,
303- is_silent = True ,
303+ is_quiet = True ,
304304 stop_on_first_fail = False ,
305305 )
306306 with self .assertRaises (RuleParsingError ):
@@ -332,4 +332,4 @@ def test_arcade_validation_on_arcade_code_passes(self):
332332
333333 result = self .run_validator ("p09_arcade_app.py" , str (rules_path ))
334334 rules_path .unlink ()
335- self .assertTrue (result )
335+ self .assertTrue (result )
0 commit comments