mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Create base model for Mongo schemas
This commit is contained in:
parent
6bebd109bb
commit
e6b4c3fd76
23 changed files with 64 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ from freezegun import freeze_time
|
|||
|
||||
from database.crud import birthdays as crud
|
||||
from database.crud import users
|
||||
from database.models import User
|
||||
from database.schemas.relational import User
|
||||
|
||||
|
||||
async def test_add_birthday_not_present(postgres, user: User):
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from freezegun import freeze_time
|
|||
|
||||
from database.crud import currency as crud
|
||||
from database.exceptions import currency as exceptions
|
||||
from database.models import Bank
|
||||
from database.schemas.relational import Bank
|
||||
|
||||
|
||||
async def test_add_dinks(postgres, bank: Bank):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from sqlalchemy import select
|
|||
from database.crud import custom_commands as crud
|
||||
from database.exceptions.constraints import DuplicateInsertException
|
||||
from database.exceptions.not_found import NoResultFoundException
|
||||
from database.models import CustomCommand
|
||||
from database.schemas.relational import CustomCommand
|
||||
|
||||
|
||||
async def test_create_command_non_existing(postgres):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from sqlalchemy import select
|
||||
|
||||
from database.crud import dad_jokes as crud
|
||||
from database.models import DadJoke
|
||||
from database.schemas.relational import DadJoke
|
||||
|
||||
|
||||
async def test_add_dad_joke(postgres):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from sqlalchemy import select
|
|||
|
||||
from database.crud import tasks as crud
|
||||
from database.enums import TaskType
|
||||
from database.models import Task
|
||||
from database.schemas.relational import Task
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import datetime
|
||||
|
||||
from database.crud import ufora_announcements as crud
|
||||
from database.models import UforaAnnouncement, UforaCourse
|
||||
from database.schemas.relational import UforaAnnouncement, UforaCourse
|
||||
|
||||
|
||||
async def test_get_courses_with_announcements_none(postgres):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from database.crud import ufora_courses as crud
|
||||
from database.models import UforaCourse
|
||||
from database.schemas.relational import UforaCourse
|
||||
|
||||
|
||||
async def test_get_course_by_name_exact(postgres, ufora_course: UforaCourse):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from sqlalchemy import select
|
||||
|
||||
from database.crud import users as crud
|
||||
from database.models import User
|
||||
from database.schemas.relational import User
|
||||
|
||||
|
||||
async def test_get_or_add_non_existing(postgres):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue