-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: take the institution or the last match of the country
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from scoap3.utils.nations import _find_country_no_cache | ||
|
||
affiliations = { | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Casilla, Valparaíso, 4059, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Casilla, Valparaiso, 4059, Chile": "Chile", | ||
"Instituto de Física, Facultad de Ciencias, Pontificia Universidad Católica de Valparaíso, Av. Brasil, Valparaiso, 2950, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Av. Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Av. Brasil, Valparaíso, 2950, Chile": "Chile", | ||
"Pontificia Universidad Católica de Valparaíso, Instituto de Física, Avenida Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Facultad de Ciencias, Instituto de Física, Pontificia Universidad Católica de Valparaíso, Av. Brasil 2950, Valparaiso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avda. Brasil 2950, Valparaiso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Instituto de Física, Facultad de Ciencias, Pontificia Universidad Católica de Valparaíso, Av. Brasil 2950, Valparaiso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad de Católica de Valparaíso, Avenida Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Casilla 4059, Valparaiso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Casilla 4059, Valparaíso, Chile": "Chile", | ||
"Instituto de Física, Facultad de Ciencias, Pontificia Universidad Católica de Valparaíso, Av. Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Instituto de Física, Pontificia Universidad Católica de Valparaíso, Avenida Brasil 2950, Valparaiso, Chile": "Chile", | ||
"Pontificia Universidad Católica de Valparaíso, Instituto de Física, Av. Brasil 2950, Valparaíso, Chile": "Chile", | ||
"Pontificia Universidad Católica de Valparaíso, Instituto de Física, Av. Brasil, Valparaíso, 2950, Chile": "Chile", | ||
"Joint Institute for Nuclear Research, 141980 Dubna, Moscow region, Russia": "JINR", | ||
"Theoretical Physics Department, CERN, Esplande des Particules, 1211 Geneva 23, Switzerland" : "CERN"} | ||
|
||
|
||
def test_find_country_no_cache(): | ||
for affiliation in affiliations: | ||
assert _find_country_no_cache(affiliation) == affiliations[affiliation] |