Skip to content

Commit

Permalink
reorganize architecture tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed May 30, 2024
1 parent b26b9a7 commit 1b8aece
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_tsvtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pandas as pd
import pytest

from clinicadl.utils.tsvtools_utils import extract_baseline
from clinicadl.tsvtools.tsvtools_utils import extract_baseline
from tests.testing_tools import compare_folders

"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Tests for customed validators #
def test_model_config():
with pytest.raises(ValidationError):
classification.ModelConfig(
classification.NetworkConfig(
**{
"architecture": "",
"loss": "",
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/train/trainer/test_training_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_data_config(caps_example):

def test_model_config():
with pytest.raises(ValidationError):
config.ModelConfig(
config.NetworkConfig(
**{
"architecture": "",
"loss": "",
Expand Down
4 changes: 2 additions & 2 deletions tests/unittests/utils/test_config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ConfigTest(BaseModel):


def test_get_default_from_config_class():
from clinicadl.utils.config_utils import get_default_from_config_class
from clinicadl.config.config_utils import get_default_from_config_class

test_config = ConfigTest()
assert get_default_from_config_class("parameter_str", test_config) == "a string"
Expand Down Expand Up @@ -62,7 +62,7 @@ def test_get_default_from_config_class():


def test_get_type_from_config_class():
from clinicadl.utils.config_utils import get_type_from_config_class
from clinicadl.config.config_utils import get_type_from_config_class

test_config = ConfigTest()
assert get_type_from_config_class("parameter_str", test_config) == str
Expand Down

0 comments on commit 1b8aece

Please sign in to comment.