ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

Implement Flask In-Memory Sessions for Testing #26

Open CFIALeronB opened 1 year ago

CFIALeronB commented 1 year ago

Overview

To further streamline our testing processes and reduce potential filesystem interactions, we should consider utilizing Flask's in-memory sessions for our testing environment. This change will lead to faster tests and eliminate the need for filesystem-based session management during tests. Objective

  1. Ensure a cleaner separation between testing and production environments.
  2. Improve testing speed by eliminating filesystem interactions related to session management.

Requirements

  1. Modify the Flask app configuration to use in-memory sessions during tests.
  2. Ensure that all tests relying on sessions are updated to work with the in-memory session store.
  3. Validate that no session data is written to the filesystem during tests.