Implenting unit testing"
This commit is contained in:
1 parent
c8d8bf9cb6
commit
edf07d19ff
3 files changed
+80
-14
No files matched your search
@@ -1,4 +1,5 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import List
|
||||
|
||||
|
||||
class PeopleCreate(BaseModel):
|
||||
@@ -8,6 +9,10 @@ class PeopleCreate(BaseModel):
|
||||
country: str
|
||||
|
||||
|
||||
class PeopleList(BaseModel):
|
||||
people: List[PeopleCreate]
|
||||
|
||||
|
||||
class AverageAgeByCountry(BaseModel):
|
||||
country: str
|
||||
average_age: float
|
||||
|
||||
Reference in new issue
Block a user