mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 02:45:34 +08:00
17 lines
423 B
Python
17 lines
423 B
Python
"""
|
|
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)
|