Implenting unit testing"

This commit is contained in:
2023-01-11 17:38:03 +01:00
parent c8d8bf9cb6
commit edf07d19ff
3 changed files with 80 additions and 14 deletions

View File

@@ -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