Using axum-sessions with axum-test-helper #33
Unanswered
aaronleopold
asked this question in
Q&A
Replies: 1 comment
-
|
We've setup some basic integration tests with tower-sessions. They might give you some idea of one possible approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I wanted to try and start unit testing a server I've been developing but haven't quite figured out the best way to go about mocking the session handles throughout my router handlers.
A simple example might be:
I think my ideal would be if it was possible to do something along the lines of layering some sort of
SessionLayerMockto my app router, rather than a realSessionLayer, that gives me access to do the following before a request:Beta Was this translation helpful? Give feedback.
All reactions