Skip to content

Commit aa23852

Browse files
committed
removed DB cluster type
1 parent c7df0c1 commit aa23852

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

services/director-v2/tests/unit/test_models_clusters.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
Worker,
77
WorkerMetrics,
88
)
9-
from models_library.clusters import ClusterTypeInModel
109
from pydantic import ByteSize, TypeAdapter
11-
from simcore_postgres_database.models.clusters import ClusterType
1210

1311

1412
def test_scheduler_constructor_with_default_has_correct_dict(faker: Faker):
@@ -41,23 +39,3 @@ def test_worker_constructor_corrects_negative_used_resources(faker: Faker):
4139
)
4240
assert worker
4341
assert worker.used_resources["CPU"] == 0
44-
45-
46-
def test_cluster_type_in_model_includes_postgres_database_model():
47-
models_library_cluster_types_names: set[str] = {
48-
t.name for t in set(ClusterTypeInModel)
49-
}
50-
postgres_library_cluster_types_names: set[str] = {t.name for t in set(ClusterType)}
51-
assert postgres_library_cluster_types_names.issubset(
52-
models_library_cluster_types_names
53-
)
54-
55-
models_library_cluster_types_values: set[str] = {
56-
t.value for t in set(ClusterTypeInModel)
57-
} # type: ignore
58-
postgres_library_cluster_types_values: set[str] = {
59-
t.value for t in set(ClusterType)
60-
}
61-
assert postgres_library_cluster_types_values.issubset(
62-
models_library_cluster_types_values
63-
)

services/director-v2/tests/unit/test_modules_dask_clients_pool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323
from pytest_mock.plugin import MockerFixture
2424
from pytest_simcore.helpers.typing_env import EnvVarsDict
25-
from simcore_postgres_database.models.clusters import ClusterType
2625
from simcore_service_director_v2.core.application import init_app
2726
from simcore_service_director_v2.core.errors import (
2827
ConfigurationError,
@@ -86,7 +85,7 @@ def creator(num_clusters: int) -> list[BaseCluster]:
8685
{
8786
"id": faker.pyint(),
8887
"name": faker.name(),
89-
"type": ClusterType.ON_PREMISE,
88+
"type": ClusterTypeInModel.ON_PREMISE,
9089
"owner": faker.pyint(),
9190
"endpoint": faker.uri(),
9291
"authentication": choice( # noqa: S311

0 commit comments

Comments
 (0)