From a7a486e63bb103ea695bb68774a2a248e8e77067 Mon Sep 17 00:00:00 2001 From: mathiasg Date: Thu, 15 Dec 2022 19:24:08 -0500 Subject: [PATCH] FIX: Missed value set, thanks to the new test :) --- migas_server/tests/test_types.py | 2 +- migas_server/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migas_server/tests/test_types.py b/migas_server/tests/test_types.py index 7a060aa..bbba1fe 100644 --- a/migas_server/tests/test_types.py +++ b/migas_server/tests/test_types.py @@ -2,7 +2,7 @@ from migas_server import types -@pytest.mark.parametrize('names', 'val', [ +@pytest.mark.parametrize('names,val', [ (['running', 'R'], 'R'), (['completed', 'C'], 'C'), (['failed', 'F'], 'F'), diff --git a/migas_server/types.py b/migas_server/types.py index be9ca7a..938231f 100644 --- a/migas_server/types.py +++ b/migas_server/types.py @@ -73,7 +73,7 @@ class Status(Enum): F = 'F' failed = strawberry.enum_value('F') S = 'S' - suspended = strawberry.enum_value('suspended') + suspended = strawberry.enum_value('S') # Deprecations, to be removed in 0.4.0 pending = strawberry.enum_value('R', deprecation_reason="Pending is now running")