python3Packages: transition from pytestFlagsArray (round 3)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -38,7 +38,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"openfreebuds/driver/huawei/test/"
|
||||
"openfreebuds/test/test_event_bus.py"
|
||||
];
|
||||
|
||||
@@ -66,7 +66,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
|
||||
# Run subset of tests that don't require YubiKey hardware
|
||||
doCheck = true;
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests"
|
||||
];
|
||||
|
||||
|
||||
@@ -41,10 +41,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "connect_box" ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
pytestFlags = [
|
||||
"--vcr-record=none"
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
"-Wignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests.py"
|
||||
];
|
||||
|
||||
|
||||
@@ -552,7 +552,7 @@ buildPythonPackage (finalAttrs: {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
pytestFlags = [
|
||||
"--override-ini=addopts="
|
||||
];
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||
export DJANGO_SETTINGS_MODULE=settings
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"testapp/tests.py"
|
||||
];
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -127,7 +127,7 @@ buildPythonPackage (finalAttrs: {
|
||||
EOF
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"e2e/python/tests"
|
||||
"tests/test_apps/python/smoke_test.py"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user