@@ -21,9 +21,8 @@ class CheckTypeChild(CheckType):
2121 with pytest .raises (TypeError ) as error :
2222 CheckTypeChild () # pylint: disable=E0110
2323
24- assert (
25- "Can't instantiate abstract class CheckTypeChild"
26- " with abstract methods _validate, evaluate" in error .value .__str__ ()
24+ assert "Can't instantiate abstract class CheckTypeChild" " with abstract methods _validate, evaluate" in str (
25+ error .value
2726 )
2827
2928
@@ -69,7 +68,7 @@ def tests_exceptions_init(check_type_str, exception_type, expected_in_output):
6968 """Tests exceptions when check object is initialized."""
7069 with pytest .raises (exception_type ) as error :
7170 CheckType .create (check_type_str )
72- assert expected_in_output in error .value . __str__ ( )
71+ assert expected_in_output in str ( error .value )
7372
7473
7574exact_match_test_values_no_change = (
@@ -303,6 +302,7 @@ def test_param_match(filename, check_type_str, evaluate_args, path, expected_res
303302 # There is not concept of "pre" and "post" in parameter_match.
304303 data = load_json_file ("parameter_match" , filename )
305304 value = extract_data_from_json (data , path )
305+ # pylint:disable=too-many-function-args
306306 actual_results = check .evaluate (evaluate_args ["params" ], value , evaluate_args ["mode" ])
307307 assert actual_results == expected_result , ASSERT_FAIL_MESSAGE .format (
308308 output = actual_results , expected_output = expected_result
@@ -350,6 +350,7 @@ def test_regex_match(filename, check_type_str, evaluate_args, path, expected_res
350350 # There is not concept of "pre" and "post" in parameter_match.
351351 data = load_json_file ("api" , filename )
352352 value = extract_data_from_json (data , path )
353+ # pylint:disable=too-many-function-args
353354 actual_results = check .evaluate (evaluate_args ["regex" ], value , evaluate_args ["mode" ])
354355 assert actual_results == expected_result , ASSERT_FAIL_MESSAGE .format (
355356 output = actual_results , expected_output = expected_result
0 commit comments