suport delete

This commit is contained in:
Bryce
2025-08-03 11:17:13 -07:00
parent b0952aee58
commit 4c2333a110
11 changed files with 148 additions and 102 deletions

View File

@@ -5,6 +5,11 @@ class Config:
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql://postgres:password@localhost:5432/email_organizer_dev'
SQLALCHEMY_TRACK_MODIFICATIONS = False
class TestingConfig(Config):
TESTING = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:' # In-memory database for tests
config = {
'default': Config
'default': Config,
'testing': TestingConfig
}