Skip to content

Commit

Permalink
python312Packages.pytest-django: run all tests
Browse files Browse the repository at this point in the history
Previously some would be skipped with messages like

    SKIPPED [1] tests/test_db_setup.py:203: could not import 'xdist': No module named 'xdist'
  • Loading branch information
dotlambda committed Aug 14, 2024
1 parent e7f2456 commit 6b046b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/pytest-django/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
setuptools-scm,
django-configurations,
pytest,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
Expand All @@ -19,17 +20,18 @@ buildPythonPackage rec {
hash = "sha256-XQVP4BHFbzsQ+Xj0Go77Llrfx+aA7zb7VxraHyR3nZA=";
};

nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];

buildInputs = [ pytest ];

propagatedBuildInputs = [ django ];
dependencies = [ django ];

nativeCheckInputs = [
django-configurations
pytest-xdist
pytestCheckHook
];

Expand All @@ -49,7 +51,8 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;

meta = with lib; {
description = "py.test plugin for testing of Django applications";
changelog = "https://github.com/pytest-dev/pytest-django/blob/v${version}/docs/changelog.rst";
description = "Pytest plugin for testing of Django applications";
homepage = "https://pytest-django.readthedocs.org/en/latest/";
license = licenses.bsd3;
};
Expand Down

0 comments on commit 6b046b4

Please sign in to comment.