Skip to content

Commit

Permalink
use relative import paths for test utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoczyns-volue committed Jan 9, 2025
1 parent a3fb970 commit 53c08bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/volue/mesh/tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from dateutil import tz

from volue.mesh import AttributeBase, Timeseries, TimeseriesAttribute
from volue.mesh.tests.test_utilities.utilities import CHIMNEY_1_ID, CHIMNEY_2_ID

from .test_utilities.utilities import CHIMNEY_1_ID, CHIMNEY_2_ID

ATTRIBUTE_PATH_PREFIX = "Model/SimpleThermalTestModel/ThermalComponent.ThermalPowerToPlantRef/SomePowerPlant1."

Expand Down
6 changes: 2 additions & 4 deletions src/volue/mesh/tests/test_mesh_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
import pytest

from volue.mesh import Timeseries, _common, _mesh_id
from volue.mesh.tests.test_utilities.utilities import (
AttributeForTesting,
ObjectForTesting,
)

from .test_utilities.utilities import AttributeForTesting, ObjectForTesting


@pytest.mark.unittest
Expand Down
6 changes: 2 additions & 4 deletions src/volue/mesh/tests/test_mesh_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
Object,
OwnershipRelationAttribute,
)
from volue.mesh.tests.test_utilities.utilities import (
AttributeForTesting,
ObjectForTesting,
)

from .test_utilities.utilities import AttributeForTesting, ObjectForTesting

OBJECT_PATH = "Model/SimpleThermalTestModel/ThermalComponent.ThermalPowerToPlantRef/SomePowerPlant1"
OBJECT_ID = uuid.UUID("0000000A-0001-0000-0000-000000000000")
Expand Down
3 changes: 2 additions & 1 deletion src/volue/mesh/tests/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from dateutil import tz

from volue.mesh import LinkRelationVersion
from volue.mesh.tests.test_utilities.utilities import CHIMNEY_1_ID, CHIMNEY_2_ID

from .test_utilities.utilities import CHIMNEY_1_ID, CHIMNEY_2_ID

ONE_TO_ONE_LINK_RELATION_ATTRIBUTE_NAME = "SimpleReference"
ONE_TO_MANY_LINK_RELATION_ATTRIBUTE_NAME = "PlantToChimneyRefCollection"
Expand Down

0 comments on commit 53c08bd

Please sign in to comment.