diff --git a/src/tests/test_check_functions.py b/src/tests/test_check_functions.py index b39a631b..e40caeef 100644 --- a/src/tests/test_check_functions.py +++ b/src/tests/test_check_functions.py @@ -1,5 +1,4 @@ import pandas as pd -import pytest from validator import global_data from validator.check_functions import ( @@ -22,7 +21,6 @@ meets_multi_value_field_restriction, string_contains, ) -from validator.checks import SBLCheck class TestInvalidDateFormat: @@ -870,27 +868,3 @@ def test_with_incorrect_values(self): ) is False ) - - -class TestSBLCheck: - def test_no_id_check(self): - with pytest.raises(Exception) as exc: - SBLCheck(lambda: True, warning=True, name="Just a Warning") - - assert "Each check must be assigned a `name` and an `id`." in str(exc.value) - assert exc.type == ValueError - - def test_no_name_check(self): - with pytest.raises(Exception) as exc: - SBLCheck(lambda: True, id="00000", warning=True) - - assert "Each check must be assigned a `name` and an `id`." in str(exc.value) - assert exc.type == ValueError - - def test_name_and_id_check(self): - raised = False - try: - SBLCheck(lambda: True, id="00000", warning=True, name="Just a Warning") - except ValueError: - raised = True - assert raised is False