Files
wizarr/tests/test_app.py
Matthieu B 7b8f64af7d Fix SQLAlchemy model constructors to accept keyword arguments
- Added __init__ constructors to all SQLAlchemy models
- Fixed pyright 'No parameter named' errors across the codebase
- Fixed various ruff linting issues (SIM108, E741, E402, SIM102, B904, SIM105)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-15 13:52:15 +02:00

12 lines
439 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
assert app.config["SQLALCHEMY_DATABASE_URI"] == "sqlite:///:memory:"
# Check that essential Flask app attributes exist
assert app.name == "app"
assert hasattr(app, "route")
assert hasattr(app, "test_client")