-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bgrande/ORCA-163/tower-launch-workflow
- Loading branch information
Showing
7 changed files
with
193 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from orca.services.nextflowtower.models import TaskStatus | ||
|
||
|
||
def test_that_TaskStatus_contant_values_are_correct(): | ||
assert TaskStatus.SUBMITTED.value == "SUBMITTED" | ||
assert TaskStatus.RUNNING.value == "RUNNING" | ||
assert TaskStatus.SUCCEEDED.value == "SUCCEEDED" | ||
assert TaskStatus.FAILED.value == "FAILED" | ||
assert TaskStatus.CANCELLED.value == "CANCELLED" | ||
assert TaskStatus.UNKNOWN.value == "UNKNOWN" | ||
|
||
|
||
def test_that_TaskStatus_terminal_states_are_in_terminal_states_list(): | ||
assert TaskStatus.SUCCEEDED.value in TaskStatus.terminal_states.value | ||
assert TaskStatus.FAILED.value in TaskStatus.terminal_states.value | ||
assert TaskStatus.CANCELLED.value in TaskStatus.terminal_states.value | ||
assert TaskStatus.UNKNOWN.value in TaskStatus.terminal_states.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters