|
|
|
|
|
|
assert isinstance(done, (bool, np.bool_)) |
|
|
|
assert isinstance(info, dict) |
|
|
|
|
|
|
|
# check behaviour for allow_multiple_obs = False |
|
|
|
# check behavior for allow_multiple_obs = False |
|
|
|
env = UnityToGymWrapper(mock_env, uint8_visual=use_uint8, allow_multiple_obs=False) |
|
|
|
assert isinstance(env, UnityToGymWrapper) |
|
|
|
assert isinstance(env.observation_space, spaces.Box) |
|
|
|
|
|
|
assert isinstance(done, (bool, np.bool_)) |
|
|
|
assert isinstance(info, dict) |
|
|
|
|
|
|
|
# check behaviour for allow_multiple_obs = False |
|
|
|
# check behavior for allow_multiple_obs = False |
|
|
|
env = UnityToGymWrapper(mock_env, uint8_visual=use_uint8, allow_multiple_obs=False) |
|
|
|
assert isinstance(env, UnityToGymWrapper) |
|
|
|
assert isinstance(env.observation_space, spaces.Box) |
|
|
|