From 8ea4b34278914f2c905eca937a2ff61d0b5b283a Mon Sep 17 00:00:00 2001 From: malmans2 Date: Thu, 3 Oct 2024 11:30:09 +0200 Subject: [PATCH] use url for cost tests --- tests/integration_test_20_processing.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/integration_test_20_processing.py b/tests/integration_test_20_processing.py index 6371795..4e3ed43 100644 --- a/tests/integration_test_20_processing.py +++ b/tests/integration_test_20_processing.py @@ -48,10 +48,13 @@ def test_processing_apply_constraints(api_anon_client: ApiClient) -> None: def test_processing_estimate_costs(api_anon_client: ApiClient) -> None: - result = api_anon_client.estimate_costs( - "test-layout-sandbox-nogecko-dataset", size=100 - ) - assert "cost" in result + result = api_anon_client.estimate_costs("test-adaptor-url", variable=["foo", "bar"]) + assert result == { + "id": "size", + "cost": 2.0, + "limit": 1000.0, + "cost_bar_steps": None, + } def test_processing_get_jobs_status(api_anon_client: ApiClient) -> None: