Skip to content

Commit

Permalink
Added XXN country for testing purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
snavthale authored Nov 22, 2024
1 parent ad848a7 commit 2f563bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/tests/country_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def test_country_flag(cert, pytestconfig):
flag='😄', name='Test XL', numeric='9991', official_name='Test Country XL' )
add_country(pycountry.countries, alpha_2='XO', alpha_3='XXO', common_name='Test XO',
flag='😄', name='Test XO', numeric='9992', official_name='Test Country XO' )
add_country(pycountry.countries, alpha_2='XN', alpha_3='XXN', common_name='Test XN',
flag='😄', name='Test XN', numeric='9993', official_name='Test Country XN' )
countries = list(pycountry.countries)

if not pytestconfig.getoption('country_mode'):
Expand All @@ -53,4 +55,4 @@ def test_country_flag(cert, pytestconfig):
country = pycountry.countries.lookup(country_attributes[0].value)

# Check 3: Country in path must match country of C attribute
assert cert.pathinfo.get('country') == country.alpha_3, f"{cert.pathinfo.get('country')} != {country.alpha_3}"
assert cert.pathinfo.get('country') == country.alpha_3, f"{cert.pathinfo.get('country')} != {country.alpha_3}"

0 comments on commit 2f563bc

Please sign in to comment.