diff --git a/tdrs-backend/tdpservice/parsers/validators/test/test_category1.py b/tdrs-backend/tdpservice/parsers/validators/test/test_category1.py index f9f04e3d1..57189b634 100644 --- a/tdrs-backend/tdpservice/parsers/validators/test/test_category1.py +++ b/tdrs-backend/tdpservice/parsers/validators/test/test_category1.py @@ -98,5 +98,6 @@ def test_caseNumberNotEmpty(line, start, end, kwargs, exp_result, exp_message): ('1 4', category1.recordStartsWith, {"substr": "x"}, False, '1 4 must start with x.'), ]) def test_deprecated_cat1_validator(line, validator, kwargs, exp_result, exp_message): + """Test deprecated cat1 validators.""" deprecated_validator = deprecate_call(validator(**kwargs)) _validate_and_assert(deprecated_validator, line, exp_result, exp_message, exp_deprecated=True) diff --git a/tdrs-backend/tdpservice/parsers/validators/test/test_category2.py b/tdrs-backend/tdpservice/parsers/validators/test/test_category2.py index 5d4e6ef55..29a2541bd 100644 --- a/tdrs-backend/tdpservice/parsers/validators/test/test_category2.py +++ b/tdrs-backend/tdpservice/parsers/validators/test/test_category2.py @@ -273,5 +273,6 @@ def test_quarterIsValid(val, kwargs, exp_result, exp_message): 'Using FTANF in the Knowledge Center.')), ]) def test_deprecated_cat2_validator(val, validator, kwargs, exp_result, exp_message): + """Test deprecated cat2 validators.""" deprecated_validator = deprecate_call(validator(**kwargs)) _validate_and_assert(deprecated_validator, val, exp_result, exp_message, exp_deprecated=True) diff --git a/tdrs-backend/tdpservice/parsers/validators/test/test_category3.py b/tdrs-backend/tdpservice/parsers/validators/test/test_category3.py index 368cda6f8..b91269fff 100644 --- a/tdrs-backend/tdpservice/parsers/validators/test/test_category3.py +++ b/tdrs-backend/tdpservice/parsers/validators/test/test_category3.py @@ -32,7 +32,7 @@ def _validate_and_assert(validator, val, exp_result, exp_message): result, msg, deprecated = validator(val, _make_eargs(val)) assert result == exp_result assert msg == exp_message - assert deprecated == False + assert deprecated is False @pytest.mark.parametrize('val, option, kwargs, exp_result, exp_message', [ @@ -715,4 +715,4 @@ def test_deprecate_ifThenAlso(condition_val, result_val, exp_result, exp_message assert is_valid == exp_result assert error_msg == exp_message assert fields == exp_fields - assert deprecated == True + assert deprecated is True