-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated patterns to libphonenumber v8.13.46 (#126)
- Loading branch information
1 parent
16f318c
commit f842b8d
Showing
4 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import pytest | ||
|
||
from phone_gen.country_name import COUNTRY_NAME | ||
from phone_gen.iso3 import ISO3 | ||
from phone_gen.patterns import PATTERNS | ||
|
||
|
||
@pytest.mark.parametrize("country", PATTERNS["data"].keys()) | ||
def test_ico3(country: str): | ||
assert [i for i in ISO3.values() if i["code"] == country] | ||
|
||
|
||
@pytest.mark.parametrize("country", PATTERNS["data"].keys()) | ||
def test_country_name(country: str): | ||
assert [i for i in COUNTRY_NAME.values() if i["code"] == country] |