Skip to content

Commit

Permalink
- Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Dec 19, 2024
1 parent 66d4140 commit ad6c0b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand Down Expand Up @@ -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

0 comments on commit ad6c0b3

Please sign in to comment.