polyguard-openenv-training-3b-continuation / tests /test_postsave_inference.py
adithya9903's picture
Deploy PolyGuard HF training Space
fd0c71a verified
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