TestInABox / stackInAWSGI

Loading StackInABox into a WSGI for additional testing needs
Apache License 2.0
2 stars 1 forks source link

Data persistence between requests #7

Closed BenjamenMeyer closed 8 years ago

BenjamenMeyer commented 8 years ago

StackInABox is designed to only last for the length of a test. Loaded into StackInAWSGI that likely means that the data in a normal StackInABox model would be destroyed between requests or at a minimum not reliably retrieved. To handle this StackInAWSGI needs to be able to have a type of session that can be created using the admin functionality. The session maintains the StackInABox services for itself, and should keep all the data alive until the session is closed.

Note: Normally the session is the thread in a normal unit test scenario. Here we need to make it part of the WSGI scenario.

BenjamenMeyer commented 8 years ago

PR #9 does most of this, but we need to confirm that the sessions remain alive between WSGI requests.

BenjamenMeyer commented 8 years ago

Data remains alive between calls and sessions are persistent but limited to supporting a single worker. Issue #15 is tracking that last bit.