File: test_resume_run.py

package info (click to toggle)
python-globus-sdk 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,172 kB
  • sloc: python: 35,227; sh: 44; makefile: 35
file content (13 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import typing as t

from globus_sdk import SpecificFlowClient
from globus_sdk.testing import load_response


def test_resume_run(specific_flow_client_class: t.Type[SpecificFlowClient]):
    metadata = load_response(SpecificFlowClient.resume_run).metadata

    flow_client = specific_flow_client_class(flow_id=metadata["flow_id"])

    resp = flow_client.resume_run(metadata["run_id"])
    assert resp.http_status == 200