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.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()
|
||||||
|
|
||||||
|
|||||||
@@ -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]):
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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,
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user