Commit aed4c37f authored by Duggan, John's avatar Duggan, John
Browse files

Update test workflow name

parent 9714c452
Loading
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ GALAXY_URL = os.environ.get("NOVA_GALAXY_TEST_GALAXY_URL", "https://calvera-test
GALAXY_API_KEY = os.environ.get("NOVA_GALAXY_TEST_GALAXY_KEY", "")


WORKFLOW_NAME = "Simple_test_workflow"
WORKFLOW_NAME = "simple_test_workflow_with_dataset"
TEST_HISTORY_NAME_WF = "nova_galaxy_workflow_test_history"


@@ -40,9 +40,10 @@ def test_workflow_lifecycle_with_placeholder_id(nova_instance: Connection) -> No
        print(f"Invocation ID after run(wait=True): {invocation_id}")
        print(f"Full status details: {full_status.details if full_status else 'N/A'}")

        assert status in [WorkState.ERROR, WorkState.QUEUED], (
            f"Expected ERROR or QUEUED state after run(wait=False), got {status}"
        )
        assert status in [
            WorkState.ERROR,
            WorkState.QUEUED,
        ], f"Expected ERROR or QUEUED state after run(wait=False), got {status}"

        if status == WorkState.ERROR:
            assert full_status is not None
@@ -64,9 +65,11 @@ def test_workflow_lifecycle_with_placeholder_id(nova_instance: Connection) -> No
        assert len(step_jobs) == 0, "Expected no step jobs for a placeholder/failed workflow"

        final_status = workflow.get_status()
        assert final_status in [WorkState.ERROR, WorkState.CANCELED, WorkState.QUEUED], (
            f"Unexpected final state: {final_status}"
        )
        assert final_status in [
            WorkState.ERROR,
            WorkState.CANCELED,
            WorkState.QUEUED,
        ], f"Unexpected final state: {final_status}"


def test_workflow_initial_state() -> None: