Skip to content

Commit

Permalink
typeにtestを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
aozoraUS committed May 6, 2024
1 parent cbfe08f commit ee819bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ class UserRole(str,Enum):
school_parents="school_parents"

class GroupType(str, Enum):
play="play"
hebe="hebe"
club="club"
other="other"
play="play" # 劇:クラスを想定
hebe="hebe" # Hebe
club="club" # 部活動
test="test" # テスト用団体。全ての機能を利用可能。
other="other" # その他


class EventBase(BaseModel):
Expand Down
3 changes: 3 additions & 0 deletions app/test/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class invalid_timetable3():
private_page_content_url="<html><h1>プライベート</h1></html>",
floor=1,
place="社会科教室",
type=schemas.GroupType.play
)

group2 = schemas.GroupCreate(
Expand All @@ -154,6 +155,7 @@ class invalid_timetable3():
private_page_content_url="<html><h1>プライベート</h1></html>",
floor=2,
place="生徒ホール",
type=schemas.GroupType.play
)

group1_update = schemas.GroupUpdate(
Expand All @@ -170,6 +172,7 @@ class invalid_timetable3():
private_page_content_url="<html><h1>プライベート</h1></html>",
floor=3,
place="生徒ホール",
type=schemas.GroupType.play
)

group_tag_create1 = schemas.GroupTagCreate(
Expand Down

0 comments on commit ee819bd

Please sign in to comment.