Commit 3622e11d authored by Nils Cedric Holle's avatar Nils Cedric Holle

Some final fixes for status enum

parent 908b194f
from enum import Enum, auto
from enum import Enum, auto, unique
@unique
class PSStatus(Enum):
INCOMPLETE = auto()
......@@ -13,11 +14,11 @@ class PSStatus(Enum):
def __str__(self) -> str:
return {
self.INCOMPLETE: "incomplete",
self.ERROR: "error",
self.RUNNING: "running",
self.TESTFAILED: "test failed",
self.PAUSED: "paused",
self.WAITING: "waiting",
self.FINISHED: "finished"
}[self.value]
"INCOMPLETE": "incomplete",
"ERROR": "error",
"RUNNING": "running",
"TESTFAILED": "test failed",
"PAUSED": "paused",
"WAITING": "waiting",
"FINISHED": "finished"
}[self.name]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment