feat: implementacion de dashboards por rol, soporte de clases virtuales concurrentes en importador de sheets y cartelera del dia

This commit is contained in:
2026-09-18 23:04:48 -03:00
parent 47b50ede7e
commit 1080acd43a
240 changed files with 8354 additions and 8886 deletions
+26
View File
@@ -0,0 +1,26 @@
import pytest
from app import create_app, db
@pytest.fixture
def app():
app = create_app()
# Configure testing DB
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
app.config['TESTING'] = True
return app
@pytest.fixture
def client(app):
return app.test_client()
@pytest.fixture
def app_context(app):
with app.app_context():
yield
@pytest.fixture
def init_database(app, app_context):
db.create_all()
yield db
db.session.remove()
db.drop_all()