diff --git a/requirements/_requirements.txt b/requirements/_requirements.txt index 869172df64..3f9b132dc4 100644 --- a/requirements/_requirements.txt +++ b/requirements/_requirements.txt @@ -37,3 +37,4 @@ pytest>=8.0.0,<9.0.0 # this is not a joke, sam2 requires this as the fork we ar tokenizers>=0.19.0,<=0.20.3 slack-sdk~=3.33.4 twilio~=9.3.7 +httpx~=0.25.1 # must be pinned as bc in 0.28.0 is causing Antropics to fail \ No newline at end of file diff --git a/requirements/requirements.test.unit.txt b/requirements/requirements.test.unit.txt index a403444b26..aaf0585aa8 100644 --- a/requirements/requirements.test.unit.txt +++ b/requirements/requirements.test.unit.txt @@ -7,7 +7,7 @@ requests-mock==1.11.0 rich pytest-asyncio<=0.21.1 pytest-timeout>=2.2.0 -httpx +httpx~=0.25.1 uvicorn<=0.22.0 aioresponses>=0.7.6 supervision>=0.21.0,<=0.22.0 \ No newline at end of file diff --git a/tests/inference/hosted_platform_tests/test_workflows.py b/tests/inference/hosted_platform_tests/test_workflows.py index c20a31d01b..15e36dd481 100644 --- a/tests/inference/hosted_platform_tests/test_workflows.py +++ b/tests/inference/hosted_platform_tests/test_workflows.py @@ -129,7 +129,7 @@ def test_get_versions_of_execution_engine(object_detection_service_url: str) -> # then response.raise_for_status() response_data = response.json() - assert response_data["versions"] == ["1.3.0"] + assert response_data["versions"] == ["1.4.0"] FUNCTION = """ @@ -455,32 +455,6 @@ def test_simple_workflow_run_when_parameter_is_missing( assert response.status_code == 422 -@pytest.mark.flaky(retries=4, delay=1) -def test_simple_workflow_run_when_api_key_is_missing( - object_detection_service_url: str, detection_model_id: str -) -> None: - # when - response = requests.post( - f"{object_detection_service_url}/workflows/run", - json={ - "specification": SIMPLE_WORKFLOW_DEFINITION, - "inputs": { - "image": [ - { - "type": "url", - "value": "https://media.roboflow.com/fruit.png", - } - ] - * 2, - "model_id": detection_model_id, - }, - }, - ) - - # then - assert response.status_code == 422 - - @pytest.mark.flaky(retries=4, delay=1) def test_simple_workflow_run_when_api_key_is_invalid( object_detection_service_url: str, detection_model_id: str