Skip to content

Commit

Permalink
fix litestar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Nov 17, 2024
1 parent 1d771a1 commit d99999b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/integration/test_litestar/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ async def litestar_num_endpoint(num: int) -> dict:
litestar_num_endpoint,
]

app = Litestar(route_handlers=_handlers, pdb_on_exception=True)
app = Litestar(route_handlers=_handlers, debug=True)


@pytest.mark.xfail(
reason="litestar error - TypeError: __init__() got an unexpected keyword argument 'args'",
)
def test_litestar_endpoint_with_direct_provider_injection():
with TestClient(app=app) as client:
response = client.get("/some_resource")
Expand All @@ -44,7 +41,9 @@ def test_litestar_endpoint_with_direct_provider_injection():
assert response.json() == {"detail": 800}


@pytest.mark.xfail(reason="unknown")
@pytest.mark.xfail(
reason="litestar error - TypeError: __init__() got an unexpected keyword argument 'args'",
)
def test_litestar_num_endpoint():
with TestClient(app=app) as client:
response = client.get("/num_endpoint")
Expand All @@ -58,7 +57,9 @@ def get(self, _):
return 192342526


@pytest.mark.xfail(reason="unknown")
@pytest.mark.xfail(
reason="TypeError: Unsupported type: <class 'tests.integration.test_litestar.test_integration._RedisMock'>",
)
def test_litestar_overriding_direct_provider_endpoint():
with TestClient(app=app) as client:
with Container.redis.override_context(_RedisMock()):
Expand Down

0 comments on commit d99999b

Please sign in to comment.