polyguard-openenv-workbench / polyguard-rl /tests /test_postsave_inference.py
TheJackBright's picture
Deploy GitHub root master to Space
c296d62
from app.env.env_core import PolyGuardEnv
def test_postsave_inference_path() -> None:
env = PolyGuardEnv()
env.reset(seed=77, difficulty="easy")
action = env.get_legal_actions()[0]
_, reward, _, _ = env.step(action)
assert 0.001 <= reward <= 0.999