split tests into packages
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
## Other
|
## Other
|
||||||
|
|
||||||
* Performance optimizations
|
* Performance optimizations
|
||||||
|
* Split tests into packages based on tested area
|
||||||
|
|
||||||
# 0.10.1
|
# 0.10.1
|
||||||
|
|
||||||
|
|||||||
@@ -584,8 +584,8 @@ class NewBaseModel(pydantic.BaseModel, ModelTableProxy, metaclass=ModelMetaclass
|
|||||||
nested_model = getattr(self, field)
|
nested_model = getattr(self, field)
|
||||||
if isinstance(nested_model, MutableSequence):
|
if isinstance(nested_model, MutableSequence):
|
||||||
dict_instance[field] = self._extract_nested_models_from_list(
|
dict_instance[field] = self._extract_nested_models_from_list(
|
||||||
relation_map=self._skip_ellipsis(
|
relation_map=self._skip_ellipsis( # type: ignore
|
||||||
relation_map, field, default_return=dict() # type: ignore
|
relation_map, field, default_return=dict()
|
||||||
),
|
),
|
||||||
models=nested_model,
|
models=nested_model,
|
||||||
include=self._skip_ellipsis(include, field),
|
include=self._skip_ellipsis(include, field),
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ from fastapi import FastAPI
|
|||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
from tests.settings import DATABASE_URL
|
from tests.settings import DATABASE_URL
|
||||||
from tests.test_inheritance_concrete import ( # type: ignore
|
from tests.test_inheritance.test_inheritance_concrete import ( # type: ignore
|
||||||
Category,
|
Category,
|
||||||
Subject,
|
Subject,
|
||||||
Person,
|
Person,
|
||||||
+1
-1
@@ -6,7 +6,7 @@ from fastapi import FastAPI
|
|||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
from tests.settings import DATABASE_URL
|
from tests.settings import DATABASE_URL
|
||||||
from tests.test_inheritance_mixins import Category, Subject, metadata, db as database # type: ignore
|
from tests.test_inheritance.test_inheritance_mixins import Category, Subject, metadata, db as database # type: ignore
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
app.state.database = database
|
app.state.database = database
|
||||||
Reference in New Issue
Block a user