Bump dependencies (#874)

* fix pytest-asynio bump to 0.19

* bump mypy

* fix coverage of async fixtures
This commit is contained in:
collerek
2022-10-11 16:29:41 +02:00
committed by GitHub
parent 174a21495d
commit 3661967a27
24 changed files with 167 additions and 779 deletions

View File

@ -6,6 +6,7 @@ import decimal
import databases
import pydantic
import pytest
import pytest_asyncio
import sqlalchemy
import typing
@ -63,15 +64,8 @@ class ExampleModel2(Model):
test_string: str = ormar.String(max_length=250)
@pytest.fixture(scope="module")
def event_loop():
loop = asyncio.get_event_loop()
yield loop
loop.close()
@pytest.fixture(autouse=True, scope="module")
async def create_test_database():
def create_test_database():
engine = sqlalchemy.create_engine(DATABASE_URL)
metadata.create_all(engine)
yield