From 2f563bc11e649cd4e3dc416dd920f072c7a7a4c4 Mon Sep 17 00:00:00 2001 From: snavthale <153069696+snavthale@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:29:07 +0530 Subject: [PATCH] Added XXN country for testing purpose --- scripts/tests/country_flag.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/tests/country_flag.py b/scripts/tests/country_flag.py index 16a9262..4c80bd0 100644 --- a/scripts/tests/country_flag.py +++ b/scripts/tests/country_flag.py @@ -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'): @@ -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}" \ No newline at end of file + assert cert.pathinfo.get('country') == country.alpha_3, f"{cert.pathinfo.get('country')} != {country.alpha_3}"