def test_client():
    "covering everything in testclient (including invalid paths)"
    api = NinjaAPI()
    client = TestClient(api)
    with pytest.raises(Exception):  # noqa: B017
        client.get("/404")
covering everything in testclient (including invalid paths)
tests/test_misc.py