Closed BenjamenMeyer closed 8 years ago
PR #9 does most of this, but we need to confirm that the sessions remain alive between WSGI requests.
Data remains alive between calls and sessions are persistent but limited to supporting a single worker. Issue #15 is tracking that last bit.
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.
alive
between WSGI requests