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:
@@ -7,7 +7,7 @@ from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.database import get_db
|
||||
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()
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from sqlalchemy.orm import Session
|
||||
|
||||
from app.crud.base import CRUDBase
|
||||
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]):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# app/schemas/event_theme.py
|
||||
# app/schemas/event_themes.py
|
||||
from typing import Dict, Optional
|
||||
from uuid import UUID # Add this import
|
||||
from pydantic import BaseModel, Field, validator, field_validator
|
||||
@@ -4,7 +4,7 @@ import pytest
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
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:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from uuid import UUID
|
||||
from pydantic import ValidationError
|
||||
from app.schemas.event_theme import (
|
||||
from app.schemas.event_themes import (
|
||||
EventThemeCreate,
|
||||
EventThemeUpdate,
|
||||
EventThemeResponse,
|
||||
@@ -1,4 +1,4 @@
|
||||
# tests/schemas/test_user_schema.py
|
||||
# tests/schemas/test_users.py
|
||||
import pytest
|
||||
import re
|
||||
from pydantic import ValidationError
|
||||
Reference in New Issue
Block a user