- Added unit tests for YAML loading and parsing functionality - Created integration tests for multiple activity files validation - Implemented functional tests for complete activity workflows - Added battleship pre_script functionality tests - Integrated all test types into comprehensive Makefile - Fixed CLI validator test with proper failing fixture - Applied black formatting to all Python files - Removed problematic hardcoded targets from Makefile - Added proper venv dependency management Test coverage includes: - Unit: YAML loading, validator functionality - Integration: Cross-file validation, metadata operations - Functional: End-to-end activity flows, pre_script execution - All 30 activity files validated and tested
27 lines
643 B
Python
27 lines
643 B
Python
"""room inactive_users column
|
|
|
|
Revision ID: 5d93cdf18549
|
|
Revises: 1ac5a8e0f577
|
|
Create Date: 2024-11-24 14:04:30.488155
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import sqlite
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "5d93cdf18549"
|
|
down_revision = "1ac5a8e0f577"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
with op.batch_alter_table("room", schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column("inactive_users", sa.Text(), nullable=True))
|
|
|
|
|
|
def downgrade():
|
|
with op.batch_alter_table("room", schema=None) as batch_op:
|
|
batch_op.drop_column("inactive_users")
|