From f0c95be1b8c81956777148d57987a99c01a2caa7 Mon Sep 17 00:00:00 2001 From: abyrne Date: Wed, 29 Nov 2023 14:36:58 -0500 Subject: [PATCH] chore: ran black and isort --- src/dioptra/restapi/dependencies.py | 6 ++++-- tests/cookiecutter_dioptra_deployment/conftest.py | 2 +- tests/unit/restapi/group/test_group.py | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dioptra/restapi/dependencies.py b/src/dioptra/restapi/dependencies.py index 82d290182..a1912355c 100644 --- a/src/dioptra/restapi/dependencies.py +++ b/src/dioptra/restapi/dependencies.py @@ -56,12 +56,14 @@ def register_providers(modules: List[Callable[..., Any]]) -> None: environment. """ from .experiment import register_providers as attach_experiment_providers + from .group import register_providers as attach_group_providers + from .group_membership import ( + register_providers as attach_group_membership_providers, + ) from .job import register_providers as attach_job_providers from .queue import register_providers as attach_job_queue_providers from .task_plugin import register_providers as attach_task_plugin_providers from .user import register_providers as attach_user_providers - from .group import register_routes as attach_group_providers - from .group_membership import register_routes as attach_group_membership_providers # Append modules to list attach_experiment_providers(modules) diff --git a/tests/cookiecutter_dioptra_deployment/conftest.py b/tests/cookiecutter_dioptra_deployment/conftest.py index 72a3f9937..3e14e2449 100644 --- a/tests/cookiecutter_dioptra_deployment/conftest.py +++ b/tests/cookiecutter_dioptra_deployment/conftest.py @@ -117,7 +117,7 @@ def context(): "image": "node", "namespace": "", "tag": "latest", - "registry": "" + "registry": "", }, "redis": { "image": "redis", diff --git a/tests/unit/restapi/group/test_group.py b/tests/unit/restapi/group/test_group.py index 77d26ce45..b9a21db67 100644 --- a/tests/unit/restapi/group/test_group.py +++ b/tests/unit/restapi/group/test_group.py @@ -34,11 +34,10 @@ from dioptra.restapi.group.model import Group from dioptra.restapi.group.service import GroupService +from dioptra.restapi.group_membership.model import GroupMembership from dioptra.restapi.group_membership.service import GroupMembershipService from dioptra.restapi.queue.routes import BASE_ROUTE as QUEUE_BASE_ROUTE from dioptra.restapi.user.model import User -from dioptra.restapi.group.model import Group -from dioptra.restapi.group_membership.model import GroupMembership @pytest.fixture