mirror of
https://github.com/wizarrrr/wizarr.git
synced 2025-12-23 23:59:23 -05:00
- Added `identity_resolution.py` for resolving Wizarr users and identities. - Created `ingestion.py` to handle recording and updating activity events. - Introduced `maintenance.py` for cleanup and session management tasks. - Developed `queries.py` for read-oriented operations on activity sessions. - Implemented background tasks in `activity.py` for scheduled maintenance. - Added tests for activity services and blueprint to ensure functionality.
14 lines
563 B
Python
14 lines
563 B
Python
def test_app_creation(app):
|
|
"""Test that the Flask app can be created successfully."""
|
|
assert app is not None
|
|
assert app.config["TESTING"] is True
|
|
assert app.config["WTF_CSRF_ENABLED"] is False
|
|
# Check that a SQLite test database is being used
|
|
assert app.config["SQLALCHEMY_DATABASE_URI"].startswith("sqlite:///")
|
|
assert "wizarr_test.db" in app.config["SQLALCHEMY_DATABASE_URI"]
|
|
|
|
# Check that essential Flask app attributes exist
|
|
assert app.name == "app"
|
|
assert hasattr(app, "route")
|
|
assert hasattr(app, "test_client")
|