Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Dec 16, 2023
1 parent f90a743 commit f44203c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,6 @@ async def asgi(receive, send):
assert data == {"message": "test"}


def test_client(test_client_factory):
async def app(scope, receive, send):
client = scope.get("client")
assert client is not None
host, port = client
response = JSONResponse({"host": host, "port": port})
await response(scope, receive, send)

client = test_client_factory(app)
response = client.get("/")
assert response.json() == {"host": "testclient", "port": 50000}


@pytest.mark.parametrize("param", ("2020-07-14T00:00:00+00:00", "España", "voilà"))
def test_query_params(test_client_factory, param: str):
def homepage(request):
Expand Down

0 comments on commit f44203c

Please sign in to comment.