Rename schema and test files for consistency

Renamed `event_theme` and `test_user_schema` file paths and imports to follow consistent plural naming conventions. This improves code clarity and aligns file and import naming across the project.
This commit is contained in:
2025-03-05 12:48:18 +01:00
parent b384512b9c
commit cbcd04d8e1
6 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ from sqlalchemy.orm import Session
from app.core.database import get_db from app.core.database import get_db
from app.crud.event_theme import event_theme from app.crud.event_theme import event_theme
from app.schemas.event_theme import EventThemeCreate, EventThemeResponse, EventThemeUpdate from app.schemas.event_themes import EventThemeCreate, EventThemeResponse, EventThemeUpdate
router = APIRouter() router = APIRouter()

View File

@@ -3,7 +3,7 @@ from sqlalchemy.orm import Session
from app.crud.base import CRUDBase from app.crud.base import CRUDBase
from app.models.event_theme import EventTheme from app.models.event_theme import EventTheme
from app.schemas.event_theme import EventThemeCreate, EventThemeUpdate from app.schemas.event_themes import EventThemeCreate, EventThemeUpdate
class CRUDEventTheme(CRUDBase[EventTheme, EventThemeCreate, EventThemeUpdate]): class CRUDEventTheme(CRUDBase[EventTheme, EventThemeCreate, EventThemeUpdate]):

View File

@@ -1,4 +1,4 @@
# app/schemas/event_theme.py # app/schemas/event_themes.py
from typing import Dict, Optional from typing import Dict, Optional
from uuid import UUID # Add this import from uuid import UUID # Add this import
from pydantic import BaseModel, Field, validator, field_validator from pydantic import BaseModel, Field, validator, field_validator

View File

@@ -4,7 +4,7 @@ import pytest
from sqlalchemy.orm import Session from sqlalchemy.orm import Session
from app.crud.event_theme import event_theme from app.crud.event_theme import event_theme
from app.schemas.event_theme import EventThemeCreate, EventThemeUpdate from app.schemas.event_themes import EventThemeCreate, EventThemeUpdate
def test_create_event_theme(db_session: Session) -> None: def test_create_event_theme(db_session: Session) -> None:

View File

@@ -1,7 +1,7 @@
import pytest import pytest
from uuid import UUID from uuid import UUID
from pydantic import ValidationError from pydantic import ValidationError
from app.schemas.event_theme import ( from app.schemas.event_themes import (
EventThemeCreate, EventThemeCreate,
EventThemeUpdate, EventThemeUpdate,
EventThemeResponse, EventThemeResponse,

View File

@@ -1,4 +1,4 @@
# tests/schemas/test_user_schema.py # tests/schemas/test_users.py
import pytest import pytest
import re import re
from pydantic import ValidationError from pydantic import ValidationError