mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 21:28:32 +00:00
This is tested in test_get_study_updates_workflow_state
This commit is contained in:
parent
d053dd8652
commit
4297c78a4e
@ -21,25 +21,6 @@ class TestStudyStatusMessage(BaseTest):
|
||||
warnings = StudyService.get_study_warnings(workflow_metas, status)
|
||||
return workflow_metas, warnings
|
||||
|
||||
@skip("We don't currently return warnings. Ticket 733 addresses this. Delete or fix these then.")
|
||||
def test_study_status_message(self):
|
||||
# these are the passing tests
|
||||
# we loop through each Workflow state
|
||||
# (hidden,disabled,required,optional,locked)
|
||||
for state in WorkflowState:
|
||||
# use state.value to set status['status'],
|
||||
status = {'random_fact':
|
||||
{'status': state.value,
|
||||
'message': 'This is my status message!'}}
|
||||
|
||||
# call run_update_status(),
|
||||
workflow_metas, warnings = self.run_update_status(status)
|
||||
|
||||
# and assert the values of workflow_metas[0].state and workflow_metas[0].state_message
|
||||
self.assertEqual(0, len(warnings))
|
||||
self.assertEqual(state, workflow_metas[0].state)
|
||||
self.assertEqual('This is my status message!', workflow_metas[0].state_message)
|
||||
|
||||
def test_study_status_message_bad_name(self):
|
||||
# we don't have an entry for you in the status dictionary
|
||||
status = {'bad_name': {'status': 'hidden', 'message': 'This is my status message!'}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user