diff --git a/tests/test_score.py b/tests/test_score.py index 7f00b18..5883da2 100644 --- a/tests/test_score.py +++ b/tests/test_score.py @@ -358,7 +358,7 @@ def test_an_unknown_location_passes_the_any_group_whatever_its_remote( hybrid or not. One whose unknown line names a gate value by whole words matches it, and a role in a resolved place elsewhere is still gated, its remote unknown or not.""" - jobbank = role(store, "1", place="Storkøbenhavn; Udlandet (øvrige)", remote="hybrid") + campus = role(store, "1", place="Campus Nord; Building 7", remote="hybrid") office = role(store, "2", place="Fleet Place Office", remote="onsite") avedore = role(store, "3", place="Avedøre Holme") berlin = role(store, "4", place="Berlin, Germany") @@ -371,11 +371,11 @@ def test_an_unknown_location_passes_the_any_group_whatever_its_remote( run(config, store, score.run_score) states = {c.uid: c.gates for c in store.score_candidates(agent.id, agent.gates)} - assert states[jobbank] == [-1, 0, -1] and states[office] == [-1, 0, -1] + assert states[campus] == [-1, 0, -1] and states[office] == [-1, 0, -1] assert states[avedore] == [-1, -1, 1] assert states[berlin] == [0, -1, 0] scores = store.scores(agent.id) - assert all(scores[uid][1] == "" for uid in (jobbank, office, avedore)) + assert all(scores[uid][1] == "" for uid in (campus, office, avedore)) reason = "none of country SE, remote remote, place Malmö / Avedøre Holme" assert scores[berlin] == (0.0, reason) and scores[berlin_hybrid] == (0.0, reason)