tests/functional/services/compute/v3/test_register_function.py
raw| 1 | import globus_sdk |
| 2 | from globus_sdk.testing import load_response |
| 3 | |
| 4 | |
| 5 | def test_register_function(compute_client_v3: globus_sdk.ComputeClientV3): |
| 6 | meta = load_response(compute_client_v3.register_function).metadata |
| 7 | registration_doc = { |
| 8 | "function_name": meta["function_name"], |
| 9 | "function_code": meta["function_code"], |
| 10 | } |
| 11 | res = compute_client_v3.register_function(data=registration_doc) |
| 12 | assert res.http_status == 200 |
| 13 | assert res.data["function_uuid"] == meta["function_id"] |