MCPcopy
hub / github.com/DLR-RM/stable-baselines3 / test_env

Function test_env

tests/test_dict_env.py:86–92  ·  view source on GitHub ↗
(use_discrete_actions, channel_last, nested_dict_obs, vec_only)

Source from the content-addressed store, hash-verified

84@pytest.mark.parametrize("nested_dict_obs", [True, False])
85@pytest.mark.parametrize("vec_only", [True, False])
86def test_env(use_discrete_actions, channel_last, nested_dict_obs, vec_only):
87 # Check the env used for testing
88 if nested_dict_obs:
89 with pytest.warns(UserWarning, match=r"Nested observation spaces are not supported"):
90 check_env(DummyDictEnv(use_discrete_actions, channel_last, nested_dict_obs, vec_only))
91 else:
92 check_env(DummyDictEnv(use_discrete_actions, channel_last, nested_dict_obs, vec_only))
93
94
95@pytest.mark.parametrize("policy", ["MlpPolicy", "CnnPolicy"])

Callers

nothing calls this directly

Calls 2

check_envFunction · 0.90
DummyDictEnvClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…