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",
@patch("builtins.open", new_callable=mock_open, read_data="{}")