Use form_cache.from_request

This commit is contained in:
richard-dds
2018-11-16 13:20:55 -05:00
parent 2f04571767
commit 7d78ba4d65
4 changed files with 22 additions and 13 deletions

View File

@@ -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)