clean unused code

This commit is contained in:
collerek
2022-01-06 19:35:13 +01:00
parent f91dfd3d61
commit 646a901af5
5 changed files with 12 additions and 32 deletions

View File

@ -48,7 +48,7 @@ class DataSourceTableColumn(ormar.Model):
@pytest.fixture(autouse=True, scope="module")
def create_test_database():
def create_test_database(): # pragma: no cover
engine = sqlalchemy.create_engine(DATABASE_URL)
metadata.drop_all(engine)
metadata.create_all(engine)
@ -61,7 +61,7 @@ def create_test_database():
reason="wait for fix for sqlite in encode/databases",
)
@pytest.mark.asyncio
async def test_double_nested_reverse_relation():
async def test_double_nested_reverse_relation(): # pragma: no cover
async with database:
data_source = await DataSource(name="local").save()
test_tables = [