Skip to content

Commit

Permalink
Removed no wanted file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute committed Oct 23, 2024
1 parent 87935b7 commit 1c60a33
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app/tests/api/api_v1/test_test_run_executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,25 +796,6 @@ async def test_test_run_execution_start(async_client: AsyncClient, db: Session)
assert content["id"] == test_run_execution.id


@pytest.mark.asyncio
async def test_test_run_execution_start_no_pics(
async_client: AsyncClient, db: Session
) -> None:
test_run_execution = create_test_run_execution_with_some_test_cases(db=db, pics={})

# First attempt to start test run
response = await async_client.post(
f"{settings.API_V1_STR}/test_run_executions/{test_run_execution.id}/start",
)

# Assert 422 UNPROCESSABLE_ENTITY and a detail error message
assert response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY
content = response.json()
assert isinstance(content, dict)
assert "detail" in content.keys()
assert content["detail"] == "No PICS were informed."


@pytest.mark.asyncio
async def test_test_run_execution_busy(async_client: AsyncClient, db: Session) -> None:
test_run_execution = create_test_run_execution_with_some_test_cases(db=db)
Expand Down

0 comments on commit 1c60a33

Please sign in to comment.