python312Packages.pytest-django: 4.8.0 -> 4.9.0, drop pytest-xdist du… (#352235)

This commit is contained in:
Martin Weinelt 2024-11-03 21:09:21 +01:00 committed by GitHub
commit 827cb3e3d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,6 @@
setuptools-scm,
django-configurations,
pytest,
pytest-xdist,
pytestCheckHook,
}:
@ -33,23 +32,18 @@ buildPythonPackage rec {
nativeCheckInputs = [
django-configurations
pytest-xdist
# pytest-xidst causes random errors in the form of: django.db.utils.OperationalError: no such table: app_item
pytestCheckHook
];
preCheck = ''
# bring pytest_django_test module into PYTHONPATH
export PYTHONPATH="$(pwd):$PYTHONPATH"
export PYTHONPATH="$PWD:$PYTHONPATH"
# test the lightweight sqlite flavor
export DJANGO_SETTINGS_MODULE="pytest_django_test.settings_sqlite"
'';
disabledTests = [
# AttributeError: type object 'TestLiveServer' has no attribute '_test_settings_before_run'
"test_settings_restored"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
@ -57,5 +51,6 @@ buildPythonPackage rec {
description = "Pytest plugin for testing of Django applications";
homepage = "https://pytest-django.readthedocs.org/en/latest/";
license = licenses.bsd3;
maintainers = [ ];
};
}