happy-family-315
09/12/2022, 10:16 AMSETUP S django_db_setup (fixtures used: django_db_blocker, django_db_createdb, django_db_keepdb, django_db_modify_db_settings, django_db_use_migrations, django_test_environment)
for roughly 6 seconds which is 6/7 of the whole test duration. Running all test in this project would take hours when every tests needs 7-10 secs using pants. With pytest it takes 4 minutes. Does anyone know how to fix this issue or can I try other debugging steps?
pytest.ini
[pytest]
DJANGO_SETTINGS_MODULE = django_core.settings
# -- standard arguments:
addopts:
--nomigrations
--create-db
-vv
pants.toml
[pytest]
lockfile = "lockfiles/python/tools/pytest"
version = "pytest>=7.1.2,<7.2"
extra_requirements.add = [
"pytest-django==4.5.2",
"pytest-icdiff==0.5",
"mixer==7.2.1"
]
config_discovery = true
sparse-lifeguard-95737
09/12/2022, 12:58 PMhappy-kitchen-89482
09/12/2022, 3:08 PM