-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Integration test for /health #97
Conversation
The issue is now that def provide_queues(self, state: State) -> TaskQueues:
"""Provide the configured job queues.
Args:
state: The ``Litestar.state`` instance.
Returns:
a ``TaskQueues`` instance.
"""
return cast("TaskQueues", state.get(self.queues_dependency_key)) returns async def check_system_health(self, db_session: AsyncSession, task_queues: TaskQueues) -> Response[SystemHealth]: |
Quick look at this and it seems like this works when running the app live in that |
This PR requires now the change in cofin/litestar-saq#15 as However after changing the URL key in |
Thanks for the work on this. I've merged in your proposed change and made a |
This reverts commit 3ecd48a.
I've to admit I've no clue what's wrong here. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Pull Request Checklist
Description
The health API is currently not working due to an msgspec Validation error, as the wrong type is passed. This PR tries to fix this, however it's still WIP, as the tests are not passing yet, although the swagger UI works already.
Maybe someone has hints how to overcome the pytest issues.