Skip to content

Commit

Permalink
Fix issues spotted while testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Nov 29, 2024
1 parent 42db000 commit fd89d25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
1 change: 1 addition & 0 deletions requirements/_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements/requirements.test.unit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 1 addition & 27 deletions tests/inference/hosted_platform_tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd89d25

Please sign in to comment.