浏览代码
Update tests to support pytest 5.x
Update tests to support pytest 5.x
Our tests were using pytest fixtures by actually calling the fixture methods, but in newer 5.x versions of pytest this causes test failures. The recommended method for using fixtures is dependency injection. This change updates the relevant test fixtures to either not use `pytest.fixture` or to use dependency injection to pass the fixture. The version range requirements in `test_requirements.txt` were also updated accordingly./asymm-envs
Jonathan Harper
5 年前
当前提交
9f166f9e
共有 6 个文件被更改,包括 40 次插入 和 65 次删除
-
1ml-agents/mlagents/trainers/tests/test_learn.py
-
1ml-agents/mlagents/trainers/tests/test_rl_trainer.py
-
4ml-agents/mlagents/trainers/tests/test_sac.py
-
67ml-agents/mlagents/trainers/tests/test_trainer_controller.py
-
30ml-agents/mlagents/trainers/tests/test_trainer_util.py
-
2test_requirements.txt
|
|||
# Test-only dependencies should go here, not in setup.py |
|||
pytest>=3.2.2,<4.0.0 |
|||
pytest>=3.2.2,<6.0.0 |
|||
pytest-cov==2.6.1 |
撰写
预览
正在加载...
取消
保存
Reference in new issue