From 8f774b5147e58941769cde26f7025cdf4c0cef29 Mon Sep 17 00:00:00 2001 From: Wolf Date: Mon, 5 Oct 2026 10:14:58 +0200 Subject: [PATCH] =?UTF-8?q?Give=20the=20unknown-location=20test=20a=20plac?= =?UTF-8?q?e=20line=20that=20is=20still=20unresolved,=20now=20that=20Stork?= =?UTF-8?q?=C3=B8benhavn=20is=20placed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- tests/test_score.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)