-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .tournament import TournamentSchema, TourneyRoundSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
Tournament schema | ||
""" | ||
from pydantic import BaseModel, Field | ||
from typing import Optional | ||
|
||
|
||
class TournamentSchema(BaseModel): | ||
tournament_id: int = Field(..., alias="id") | ||
name: str | ||
slug: int | ||
city: str | ||
state: str | ||
phone: int | ||
email: Optional[str] = None | ||
|
||
|
||
class TourneyRoundSchema(BaseModel): | ||
player_id: int | ||
score: int | ||
tournament: TournamentSchema | ||
rating: int | ||
round: int |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Testing settings. | ||
""" | ||
|
||
|
||
def f(): | ||
return 3 | ||
|
||
|
||
def test_function(): | ||
assert f() == 4 |