fix coverage

This commit is contained in:
collerek
2021-10-11 12:22:47 +02:00
parent b99df7720f
commit f6458be157
5 changed files with 33 additions and 7 deletions

View File

@ -121,8 +121,6 @@ def test_all_endpoints():
"blob_col": blob.decode("utf-8"),
},
)
if response.status_code != 200:
print(response.text)
assert response.status_code == 200
item = Organisation(**response.json())
assert item.pk is not None

View File

@ -14,7 +14,7 @@ class BaseMeta(ormar.ModelMeta):
metadata = metadata
class TestModel(ormar.Model):
class NewTestModel(ormar.Model):
class Meta:
database = database
metadata = metadata
@ -37,5 +37,5 @@ def create_test_database():
def test_model_field_order():
TestCreate = TestModel.get_pydantic(exclude={"a"})
TestCreate = NewTestModel.get_pydantic(exclude={"a"})
assert list(TestCreate.__fields__.keys()) == ["b", "c", "d", "e", "f"]