diff --git a/pkgs/by-name/kh/khard/package.nix b/pkgs/by-name/kh/khard/package.nix index be52eab3c6d2..5adfdb61364e 100644 --- a/pkgs/by-name/kh/khard/package.nix +++ b/pkgs/by-name/kh/khard/package.nix @@ -60,7 +60,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: { python3.pkgs.pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ # Nixpkgs' default is `--capture=fd`, and with it, 2 command mock tests # fail, see: https://github.com/lucc/khard/issues/353 "--capture=no" diff --git a/pkgs/by-name/op/openfreebuds/package.nix b/pkgs/by-name/op/openfreebuds/package.nix index b0f5c07e8b77..29fd14b2a4e0 100644 --- a/pkgs/by-name/op/openfreebuds/package.nix +++ b/pkgs/by-name/op/openfreebuds/package.nix @@ -38,7 +38,7 @@ python3Packages.buildPythonApplication (finalAttrs: { pytestCheckHook ]; - pytestFlagsArray = [ + enabledTestPaths = [ "openfreebuds/driver/huawei/test/" "openfreebuds/test/test_event_bus.py" ]; diff --git a/pkgs/by-name/yb/yb/package.nix b/pkgs/by-name/yb/yb/package.nix index ad9cbfe8cd81..b96acb2db702 100644 --- a/pkgs/by-name/yb/yb/package.nix +++ b/pkgs/by-name/yb/yb/package.nix @@ -66,7 +66,7 @@ python3Packages.buildPythonApplication (finalAttrs: { # Run subset of tests that don't require YubiKey hardware doCheck = true; - pytestFlagsArray = [ + enabledTestPaths = [ "tests" ]; diff --git a/pkgs/development/python-modules/connect-box/default.nix b/pkgs/development/python-modules/connect-box/default.nix index 3376f3ea67ed..f34d7dbc1ba4 100644 --- a/pkgs/development/python-modules/connect-box/default.nix +++ b/pkgs/development/python-modules/connect-box/default.nix @@ -41,10 +41,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "connect_box" ]; - pytestFlagsArray = [ + pytestFlags = [ "--vcr-record=none" - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/country-list/default.nix b/pkgs/development/python-modules/country-list/default.nix index 8e4ee9ab6d95..2a301e1f6c33 100644 --- a/pkgs/development/python-modules/country-list/default.nix +++ b/pkgs/development/python-modules/country-list/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ + enabledTestPaths = [ "tests.py" ]; diff --git a/pkgs/development/python-modules/crewai/default.nix b/pkgs/development/python-modules/crewai/default.nix index 55cd5934cc11..307440f10bc7 100644 --- a/pkgs/development/python-modules/crewai/default.nix +++ b/pkgs/development/python-modules/crewai/default.nix @@ -552,7 +552,7 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; - pytestFlagsArray = [ + pytestFlags = [ "--override-ini=addopts=" ]; diff --git a/pkgs/development/python-modules/django-jinja/default.nix b/pkgs/development/python-modules/django-jinja/default.nix index 20f88ca5ac2c..b48a32ee4ae8 100644 --- a/pkgs/development/python-modules/django-jinja/default.nix +++ b/pkgs/development/python-modules/django-jinja/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { export DJANGO_SETTINGS_MODULE=settings ''; - pytestFlagsArray = [ + enabledTestPaths = [ "testapp/tests.py" ]; diff --git a/pkgs/development/python-modules/scanpy/default.nix b/pkgs/development/python-modules/scanpy/default.nix index 1bb17259226a..cad855c690a3 100644 --- a/pkgs/development/python-modules/scanpy/default.nix +++ b/pkgs/development/python-modules/scanpy/default.nix @@ -180,7 +180,7 @@ buildPythonPackage (finalAttrs: { export NUMBA_CACHE_DIR=$(mktemp -d); ''; - pytestFlagsArray = [ + pytestFlags = [ # UserWarning: 'where' used without 'out', expect unitialized memory in output. # If this is intentional, use out=None. "-Wignore::UserWarning" diff --git a/pkgs/development/python-modules/sklearn2pmml/default.nix b/pkgs/development/python-modules/sklearn2pmml/default.nix index 93e1e83c9485..53dea7d9bfa8 100644 --- a/pkgs/development/python-modules/sklearn2pmml/default.nix +++ b/pkgs/development/python-modules/sklearn2pmml/default.nix @@ -66,7 +66,7 @@ buildPythonPackage (finalAttrs: { statsmodels ]; - pytestFlagsArray = [ + enabledTestPaths = [ # Only run the main test suite; subpackage tests require # sklearn-pandas which is not available in nixpkgs "sklearn2pmml/tests" diff --git a/pkgs/development/python-modules/tree-sitter-language-pack/default.nix b/pkgs/development/python-modules/tree-sitter-language-pack/default.nix index 090b6215651d..20e3c8d6f426 100644 --- a/pkgs/development/python-modules/tree-sitter-language-pack/default.nix +++ b/pkgs/development/python-modules/tree-sitter-language-pack/default.nix @@ -127,7 +127,7 @@ buildPythonPackage (finalAttrs: { EOF ''; - pytestFlagsArray = [ + enabledTestPaths = [ "e2e/python/tests" "tests/test_apps/python/smoke_test.py" ];