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),
|
||||||
|
|||||||
0
tests/test_deferred/__init__.py
Normal file
0
tests/test_deferred/__init__.py
Normal file
0
tests/test_encryption/__init__.py
Normal file
0
tests/test_encryption/__init__.py
Normal file
0
tests/test_exclude_include_dict/__init__.py
Normal file
0
tests/test_exclude_include_dict/__init__.py
Normal file
0
tests/test_fastapi/__init__.py
Normal file
0
tests/test_fastapi/__init__.py
Normal file
@ -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,
|
||||||
@ -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
|
||||||
0
tests/test_inheritance/__init__.py
Normal file
0
tests/test_inheritance/__init__.py
Normal file
0
tests/test_meta_constraints/__init__.py
Normal file
0
tests/test_meta_constraints/__init__.py
Normal file
0
tests/test_model_definition/__init__.py
Normal file
0
tests/test_model_definition/__init__.py
Normal file
0
tests/test_model_definition/pks_and_fks/__init__.py
Normal file
0
tests/test_model_definition/pks_and_fks/__init__.py
Normal file
0
tests/test_model_methods/__init__.py
Normal file
0
tests/test_model_methods/__init__.py
Normal file
0
tests/test_ordering/__init__.py
Normal file
0
tests/test_ordering/__init__.py
Normal file
0
tests/test_queries/__init__.py
Normal file
0
tests/test_queries/__init__.py
Normal file
0
tests/test_relations/__init__.py
Normal file
0
tests/test_relations/__init__.py
Normal file
0
tests/test_signals/__init__.py
Normal file
0
tests/test_signals/__init__.py
Normal file
0
tests/test_utils/__init__.py
Normal file
0
tests/test_utils/__init__.py
Normal file
Reference in New Issue
Block a user