changed test config file to inherit from default (#49)

* lint

* reconfigured modules in yaml

* added data module

* changed test config file
This commit is contained in:
evonneng authored and GitHub committed 2022-04-29 16:18:30 -07:00
1 parent d79c112248
commit e874e856ec
4 files changed
+24 -7

No files matched your search

+4 -5
View File
@@ -2,8 +2,7 @@
Default test to make sure train runs
"""
import pytest
import omegaconf
from mattport.utils.io import get_absolute_path
from hydra.experimental import compose, initialize
from scripts.run_train import main
@@ -11,6 +10,6 @@ from scripts.run_train import main
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def test_run_train():
"""test run train script works properly"""
test_config = get_absolute_path("./tests/configs/test_default.yml")
cfg = omegaconf.OmegaConf.load(test_config)
main(cfg)
initialize(config_path="../configs/")
conf = compose("test_dryrun.yaml")
main(conf)