added general testing, fixed up config, made writer general

This commit is contained in:
evonneng committed 2022-04-28 23:21:01 +00:00
1 parent e5f436a18d
commit 58f2622f4d
7 files changed
+121 -16

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"""
Default test to make sure train runs
"""
import pytest
import omegaconf
from mattport.utils.io import get_absolute_path
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)