@@ -93,7 +93,9 @@ def test_run_with_malformed_rule_raises_error(self):
9393
9494 def test_linter_rule_passes_for_valid_code (self ):
9595 """Tests that CheckLinterRule passes for clean code."""
96- rules = {"validation_rules" : [{"rule_id" : 1 , "type" : "check_linter_pep8" , "message" : "PEP8 fail" }]}
96+ rules = {"validation_rules" : [{"rule_id" : 1 , "type" : "check_linter_pep8" , "message" : "PEP8 fail" , "params" : {
97+ "ignore" : ["F401" , "E302" , "E305" , "E261" ]
98+ }}]}
9799 rules_path = FIXTURES_DIR / "temp_linter_rules.json"
98100 with open (rules_path , "w" , encoding = "utf-8" ) as f :
99101 # noinspection PyTypeChecker
@@ -213,6 +215,7 @@ def test_full_rule_sets(self):
213215
214216 test_cases = [
215217 # Название теста, файл с кодом, файл с правилами, ожидаемый результат (True=pass)
218+ ("debug_pep8_valid" , "p01_simple_program.py" , "debug_pep8.json" , True ),
216219 ("py_general_valid" , "p01_simple_program.py" , "r_full_py_general.json" , True ),
217220 ("api_valid" , "p06_api_client.py" , "r_full_api_rules.json" , True ),
218221 ("flask_valid" , "p08_flask_app.py" , "r_full_flask_rules.json" , True ),
0 commit comments