Skip to content

Commit

Permalink
Test case for phone number empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
preritdas authored May 6, 2023
1 parent cfe4d65 commit d63c986
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ def test_validate_already_good():

def test_validate_bad_number():
with pytest.raises(ValueError):
validate_phone_number("123")
validate_phone_number("123")


def test_validate_bad_empty_string():
with pytest.raises(ValueError):
validate_phone_number("")


def test_validate_bad_type():
Expand Down

0 comments on commit d63c986

Please sign in to comment.