Make game layer work with new state api

This commit is contained in:
Marek Wolan
2023-12-14 14:04:43 +00:00
parent 1ec7df1170
commit 6a80f4cc77
10 changed files with 145 additions and 196 deletions

View File

@@ -14,7 +14,7 @@ def test_file_observation():
state = sim.describe_state()
dog_file_obs = FileObservation(
where=["network", "nodes", pc.uuid, "file_system", "folders", "root", "files", "dog.png"]
where=["network", "nodes", pc.hostname, "file_system", "folders", "root", "files", "dog.png"]
)
assert dog_file_obs.observe(state) == {"health_status": 1}
assert dog_file_obs.space == spaces.Dict({"health_status": spaces.Discrete(6)})