1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-30 02:12:29 +01:00

tests: added new checkpoint and functional tests (#265)

* added new tests
- test_preset_n_and_ew
- test_preset_n_and_ew_and_onnx

* code utils improvements (all utils)
* improve checkpoint_test
* new functionality for functional_test markers and presets lists
* removed special environment container
* add xfail to certain tests
This commit is contained in:
anabwan
2019-03-28 22:57:31 +02:00
committed by Scott Leishman
parent 310d31c227
commit 869bd421a3
6 changed files with 173 additions and 62 deletions

View File

@@ -16,6 +16,7 @@
"""Manage all preset"""
import os
import pytest
from importlib import import_module
from rl_coach.tests.utils.definitions import Definitions as Def
@@ -26,7 +27,13 @@ def import_preset(preset_name):
:param preset_name: preset name
:return: imported module
"""
return import_module('{}.presets.{}'.format(Def.GROUP_NAME, preset_name))
try:
module = import_module('{}.presets.{}'
.format(Def.GROUP_NAME, preset_name))
except:
pytest.skip("Can't import module: {}".format(preset_name))
return module
def validation_params(preset_name):