maxcountryman / axum-sessions

🥠 Cookie-based sessions for Axum via async-session.
MIT License
74 stars 18 forks source link

ReadableSession test utils #38

Closed lcmgh closed 1 year ago

lcmgh commented 1 year ago

Hi!

Are there any utilities to easily create a ReadableSession object for testing purposes?

Thanks

maxcountryman commented 1 year ago

Currently that I'm aware of, no.

However I believe async-session is going to be updated soon and when it is will include a change that makes sessions directly clonable.

When that happens we'll move back to using the session without the need for separate extractors.