From 3f76af9b90d84e1817f44f37e191e37d436aad5a Mon Sep 17 00:00:00 2001 From: chausman <chausman@nrao.edu> Date: Wed, 15 Sep 2021 14:26:53 -0600 Subject: [PATCH] update tests --- shared/workspaces/workspaces/system/enums.py | 4 ---- .../workspaces/system/services/remote_processing_service.py | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/shared/workspaces/workspaces/system/enums.py b/shared/workspaces/workspaces/system/enums.py index 69492ff13..1d36fb1ad 100644 --- a/shared/workspaces/workspaces/system/enums.py +++ b/shared/workspaces/workspaces/system/enums.py @@ -49,7 +49,3 @@ class RemoteProcessingSites(Enum): @classmethod def values(cls): return cls._value2member_map_ - - @classmethod - def is_remote(cls, remote_type: str): - return remote_type in cls.values() diff --git a/shared/workspaces/workspaces/system/services/remote_processing_service.py b/shared/workspaces/workspaces/system/services/remote_processing_service.py index e65d01b2e..cf5d7baa2 100644 --- a/shared/workspaces/workspaces/system/services/remote_processing_service.py +++ b/shared/workspaces/workspaces/system/services/remote_processing_service.py @@ -45,11 +45,9 @@ class CapoInjector: """ parameters = self.request.argument remote_types = RemoteProcessingSites.values() - if any([key in remote_types for key in parameters]) and RemoteWorkflows.is_remote( + return any([key in remote_types for key in parameters]) and RemoteWorkflows.is_remote( wf_name=self.request.workflow_name - ): - return True - return False + ) def identify_subspace(self) -> ListView: """ -- GitLab