- 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
34 lines
869 B
Python
34 lines
869 B
Python
"""user session table
|
|
|
|
Revision ID: 1ac5a8e0f577
|
|
Revises: 38a330686a17
|
|
Create Date: 2024-11-23 11:25:01.723169
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import sqlite
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "1ac5a8e0f577"
|
|
down_revision = "38a330686a17"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.create_table(
|
|
"user_session",
|
|
sa.Column("id", sa.Integer(), nullable=False),
|
|
sa.Column("session_id", sa.String(length=128), nullable=False),
|
|
sa.Column("username", sa.String(length=128), nullable=True),
|
|
sa.Column("room_name", sa.String(length=128), nullable=True),
|
|
sa.Column("room_id", sa.Integer(), nullable=True),
|
|
sa.PrimaryKeyConstraint("id"),
|
|
sa.UniqueConstraint("session_id"),
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_table("user_session")
|