import pytest from httpx import AsyncClient from jb.models.hit import Hit @pytest.mark.skip(reason="hits live api, need to look at this") async def test_work( httpxclient: AsyncClient, no_limit, amt_worker_id, amt_assignment_id, hit_in_amt: Hit, ): client = httpxclient params = { "workerId": amt_worker_id, "assignmentId": amt_assignment_id, "hitId": hit_in_amt.amt_hit_id, } res = await client.get(f"/work/", params=params) assert res.status_code == 200 # the response is an html page assert res.headers["content-type"] == "text/html; charset=utf-8"