diff --git a/aws_lambdas/daily_quiz/aws_lambda/model.py b/aws_lambdas/daily_quiz/aws_lambda/model.py index a14d748..5126743 100644 --- a/aws_lambdas/daily_quiz/aws_lambda/model.py +++ b/aws_lambdas/daily_quiz/aws_lambda/model.py @@ -1,5 +1,5 @@ from datetime import date, datetime -from typing import Optional, Sequence +from typing import Sequence from pydantic import BaseModel, field_serializer @@ -8,9 +8,9 @@ class Game(BaseModel): id: int steam_id: int name: str - kr_name: Optional[str] released_at: datetime genres: Sequence[str] + aliases: Sequence[str] updated_at: datetime created_at: datetime diff --git a/aws_lambdas/tests/daily_quiz/utils/model.py b/aws_lambdas/tests/daily_quiz/utils/model.py index 3ea1fbe..68b00d6 100644 --- a/aws_lambdas/tests/daily_quiz/utils/model.py +++ b/aws_lambdas/tests/daily_quiz/utils/model.py @@ -12,8 +12,8 @@ def create_random_game( *, steam_id: Optional[int] = None, name: Optional[str] = None, - kr_name: Optional[str] = None, genres: Optional[list[str]] = None, + aliases: list[str] = [], released_at: Optional[datetime] = None, ) -> Game: global game_id_counter @@ -23,8 +23,6 @@ def create_random_game( steam_id = game_id_counter if name is None: name = f"Game #{steam_id}" - if kr_name is None: - kr_name = f"게임 #{steam_id}" if genres is None: genres = [f"Genre #{steam_id}"] if released_at is None: @@ -37,9 +35,9 @@ def create_random_game( id=game_id_counter, steam_id=steam_id, name=name, - kr_name=kr_name, created_at=created_at, updated_at=updated_at, genres=genres, + aliases=aliases, released_at=released_at, )