mirror of
https://github.com/wizarrrr/wizarr.git
synced 2026-06-12 07:44:46 -04:00
- 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>
12 lines
439 B
Python
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")
|