Give the unknown-location test a place line that is still unresolved, now that Storkøbenhavn is placed
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2f18cb3c7
commit
8f774b5147
1 file changed
+3
-3
+3
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user