Use form_cache.from_request
This commit is contained in:
@@ -8,6 +8,7 @@ from atst.utils.form_cache import DEFAULT_CACHE_NAME, FormCache
|
||||
def form_cache(app):
|
||||
return FormCache(app.redis)
|
||||
|
||||
|
||||
def test_cache_form_data(app, form_cache):
|
||||
data = ImmutableDict({"kessel_run": "12 parsecs"})
|
||||
key = form_cache.write(data)
|
||||
|
Reference in New Issue
Block a user