浏览代码

Update test_bad_env_path

/asymm-envs
Alphonso Crawford 5 年前
当前提交
26d44958
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 13
      ml-agents/mlagents/trainers/tests/test_learn.py

13
ml-agents/mlagents/trainers/tests/test_learn.py


def test_bad_env_path():
with pytest.raises(UnityEnvironmentException):
learn.create_environment_factory(env_path="/foo/bar",
docker_target_name=None,
no_graphics=True,
seed=None,
start_port=8000,
env_args=None)
learn.create_environment_factory(
env_path="/foo/bar",
docker_target_name=None,
no_graphics=True,
seed=None,
start_port=8000,
env_args=None)
@patch("builtins.open", new_callable=mock_open, read_data="{}")

正在加载...
取消
保存