Skip to content

Commit

Permalink
fix: get_indicepa_by_ipacode fails if result contains more AOO, fixed #…
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Sep 21, 2021
1 parent 436363a commit a87c06f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spid_sp_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


BASE_DIR = Path(__file__).resolve().parent
__version__ = "0.9.17"
__version__ = "0.9.18"
__name__ = "spid_sp_test"
logger = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion src/spid_sp_test/metadata_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ def test_Contacts_IPACode(self):
ipacode.text, "The IPACode element MUST have a value",
test_id = ['1.11.1'], **_data
)
res = get_indicepa_by_ipacode(ipacode.text)
self._assertTrue(
get_indicepa_by_ipacode(ipacode.text)[0] == 1,
not res[1]['errore'] and res[1]['risposta'],
"The IPACode element MUST have a valid value present on IPA",
test_id = ['1.11.2'], **_data,
)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_04_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

def test_indicepa():
get_indicepa_by_ipacode('unical')

def test_indicepa_2():
res = get_indicepa_by_ipacode('r_vda')

0 comments on commit a87c06f

Please sign in to comment.