Files
wizarr/tests/test_app.py
Matthieu B 0ac98355dd feat(activity): Implement activity ingestion, identity resolution, and maintenance services
- 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.
2025-10-16 15:18:31 +02:00

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")