import pytest from httpx import AsyncClient class TestWork: @pytest.mark.anyio async def test_work( self, httpxclient: AsyncClient, hit_record, amt_assignment_id, amt_worker_id, ): client = httpxclient params = { "workerId": amt_worker_id, "assignmentId": amt_assignment_id, "hitId": hit_record.amt_hit_id, } res = await client.get("/work/", params=params) assert res.status_code == 200