suport delete
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user