treewide: pytestFlagsArray -> enabledTestPaths (trivial)

This commit is contained in:
Yueh-Shun Li 2025-04-30 23:21:45 +08:00
parent d2d6914c8a
commit 794f904bf3
358 changed files with 358 additions and 358 deletions

View File

@ -29,7 +29,7 @@ python3Packages.buildPythonApplication rec {
pytest-mock
];
pytestFlagsArray = [ "tests/" ];
enabledTestPaths = [ "tests/" ];
meta = {
description = "Mopidy extension for playing music from Tidal";

View File

@ -58,7 +58,7 @@ python3.pkgs.buildPythonApplication rec {
umockdev
];
pytestFlagsArray = [
enabledTestPaths = [
"test"
];

View File

@ -133,7 +133,7 @@ python3.pkgs.buildPythonApplication rec {
pycryptodomex
];
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
postCheck = ''
$out/bin/electrum help >/dev/null

View File

@ -158,7 +158,7 @@ python3.pkgs.buildPythonApplication {
];
buildInputs = lib.optional stdenv.hostPlatform.isLinux qtwayland;
pytestFlagsArray = [ "electrum_ltc/tests" ];
enabledTestPaths = [ "electrum_ltc/tests" ];
disabledTests = [
"test_loop" # test tries to bind 127.0.0.1 causing permission error

View File

@ -23,7 +23,7 @@ buildPythonApplication rec {
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test/test.py" ];
enabledTestPaths = [ "test/test.py" ];
meta = {
description = "Importer and exporter for MBTiles";

View File

@ -59,7 +59,7 @@ python3.pkgs.buildPythonApplication rec {
unittest-xml-reporting
];
pytestFlagsArray = [
enabledTestPaths = [
"test"
];

View File

@ -119,7 +119,7 @@ stdenv.mkDerivation (finalAttrs: {
rm ../testing/adios2/python/TestBPWriteTypesHighLevelAPI.py
'';
pytestFlagsArray = [
enabledTestPaths = [
"../testing/adios2/python/Test*.py"
];

View File

@ -289,7 +289,7 @@ buildPythonPackage rec {
airflow db reset -y
'';
pytestFlagsArray = [
enabledTestPaths = [
"tests/core/test_core.py"
];

View File

@ -48,7 +48,7 @@ python3Packages.buildPythonPackage rec {
"pierky.arouteserver"
];
pytestFlagsArray = [ "tests/static" ];
enabledTestPaths = [ "tests/static" ];
disabledTests = [
# disable copyright year check of files

View File

@ -70,7 +70,7 @@ python.pkgs.buildPythonApplication rec {
pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/unit"
];

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
python3Packages.pytestCheckHook
];
pytestFlagsArray = [ "test.py" ];
enabledTestPaths = [ "test.py" ];
meta = with lib; {
description = "Storage conversion and expression calculator";

View File

@ -39,7 +39,7 @@ python3.pkgs.buildPythonApplication rec {
pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"tests"
];

View File

@ -100,7 +100,7 @@ python.pkgs.buildPythonApplication rec {
writableTmpDirAsHomeHook
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTests = [
# Relies upon the `charm` tool being installed

View File

@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
wireshark-cli
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/tests.py"
];

View File

@ -77,7 +77,7 @@ python3Packages.buildPythonApplication rec {
time-machine
];
pytestFlagsArray = [
enabledTestPaths = [
"fittrackee"
];

View File

@ -65,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
"test_reading"
];
pytestFlagsArray = [ "../tests" ];
enabledTestPaths = [ "../tests" ];
meta = {
description = "Macromolecular crystallography library and utilities";

View File

@ -116,7 +116,7 @@ stdenv.mkDerivation rec {
export PYTHONPATH="$PYTHONPATH:../python"
'';
pytestFlagsArray = [ "../tests" ];
enabledTestPaths = [ "../tests" ];
disabledTests = [
"test_autostart" # $PATH problems
"test_wmexec_to_other" # timeouts in sandbox

View File

@ -45,7 +45,7 @@ python3.pkgs.buildPythonApplication rec {
pythonImportsCheck = [ "knowsmore" ];
pytestFlagsArray = [ "tests/tests*" ];
enabledTestPaths = [ "tests/tests*" ];
meta = with lib; {
description = "Tool for pentesting Microsoft Active Directory";

View File

@ -29,7 +29,7 @@ python3Packages.buildPythonApplication rec {
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
pytestFlagsArray = [ "tests/*.py" ];
enabledTestPaths = [ "tests/*.py" ];
# Disabling tests failing on darwin due to a missing pgrep binary on procps
disabledTests = [ "test_is_process_running" ];

View File

@ -52,7 +52,7 @@ python3Packages.buildPythonApplication rec {
pythonImportsCheck = [ "memray" ];
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
disabledTests = [
# Import issue

View File

@ -63,7 +63,7 @@ python.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python.pkgs; [ pytestCheckHook ];
pytestFlagsArray = [ "open_web_calendar/test" ];
enabledTestPaths = [ "open_web_calendar/test" ];
pythonImportsCheck = [ "open_web_calendar.app" ];

View File

@ -268,7 +268,7 @@ python.pkgs.buildPythonApplication rec {
# manually managed in postPatch
dontUsePytestXdist = false;
pytestFlagsArray = [
enabledTestPaths = [
"src"
];

View File

@ -38,7 +38,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/*.py"
];

View File

@ -43,7 +43,7 @@ python3.pkgs.buildPythonApplication rec {
pythonImportsCheck = [ "routersploit" ];
pytestFlagsArray = [
enabledTestPaths = [
# Run the same tests as upstream does in the first round
"tests/core/"
"tests/test_exploit_scenarios.py"

View File

@ -50,7 +50,7 @@ python3.pkgs.buildPythonApplication rec {
pythonImportsCheck = [ "s3ql" ];
pytestFlagsArray = [ "tests/" ];
enabledTestPaths = [ "tests/" ];
passthru.updateScript = nix-update-script {
extraArgs = [

View File

@ -88,7 +88,7 @@ python3Packages.buildPythonApplication rec {
versionCheckProgramArg = "--version";
pytestFlagsArray = [
enabledTestPaths = [
"tests/tests.py"
"tests/test_expand.py"
"tests/test_io.py"

View File

@ -141,7 +141,7 @@ python312Packages.buildPythonApplication rec {
squashfsTools
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTests = [
"test_bin_echo"

View File

@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
pytestFlagsArray = [ "tests/*" ];
enabledTestPaths = [ "tests/*" ];
meta = {
description = "TUI application that provides a multi-timezone graphical clock in a terminal environment.";

View File

@ -69,7 +69,7 @@ buildPythonPackage rec {
preCheck = lib.optionalString config.cudaSupport ''
export TRITON_PTXAS_PATH="${lib.getExe' cudatoolkit "ptxas"}"
'';
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
disabledTests =
[
# try to download data:

View File

@ -30,7 +30,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "src/actdiag/tests/" ];
enabledTestPaths = [ "src/actdiag/tests/" ];
disabledTests = [
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "aeidon/test" ];
enabledTestPaths = [ "aeidon/test" ];
disabledTests = [
# requires gspell to work with gobject introspection

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "async_tests.py" ];
enabledTestPaths = [ "async_tests.py" ];
pythonImportsCheck = [ "afsapi" ];

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/ahocorapy_test.py"
];

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
pytest-cov-stub
];
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
pythonImportsCheck = [ "aiokef" ];
meta = with lib; {

View File

@ -25,7 +25,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "aiomultiprocess/tests/*.py" ];
enabledTestPaths = [ "aiomultiprocess/tests/*.py" ];
disabledTests = [
# tests are flaky and make the whole test suite time out

View File

@ -26,7 +26,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
# Tests are not pick-up automatically by the hook
pytestFlagsArray = [ "aiosqlite/tests/*.py" ];
enabledTestPaths = [ "aiosqlite/tests/*.py" ];
pythonImportsCheck = [ "aiosqlite" ];

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ancpbids" ];
pytestFlagsArray = [ "tests/auto" ];
enabledTestPaths = [ "tests/auto" ];
disabledTests = [ "test_fetch_dataset" ];

View File

@ -26,7 +26,7 @@ buildPythonPackage rec {
pytest-cov-stub
];
pytestFlagsArray = [ "tests.py" ];
enabledTestPaths = [ "tests.py" ];
pythonImportsCheck = [ "anonip" ];

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ansi2image" ];
pytestFlagsArray = [ "tests/tests.py" ];
enabledTestPaths = [ "tests/tests.py" ];
meta = with lib; {
description = "Module to convert ANSI text to an image";

View File

@ -62,7 +62,7 @@ buildPythonPackage rec {
requests-mock
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/"
];

View File

@ -26,7 +26,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test_apipkg.py" ];
enabledTestPaths = [ "test_apipkg.py" ];
pythonImportsCheck = [ "apipkg" ];

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/test_asn1.py" ];
enabledTestPaths = [ "tests/test_asn1.py" ];
pythonImportsCheck = [ "asn1" ];

View File

@ -35,7 +35,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';
pytestFlagsArray = [ "test/unittests.py" ];
enabledTestPaths = [ "test/unittests.py" ];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# https://github.com/WojciechMula/aspell-python/issues/22

View File

@ -50,7 +50,7 @@ buildPythonPackage rec {
];
# avoid import mismatch errors, as conftest.py is copied to build dir
pytestFlagsArray = [ "extension_helpers" ];
enabledTestPaths = [ "extension_helpers" ];
disabledTests = [
# https://github.com/astropy/extension-helpers/issues/43

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "asyncinotify" ];
pytestFlagsArray = [ "test.py" ];
enabledTestPaths = [ "test.py" ];
meta = with lib; {
badPlatforms = [

View File

@ -59,7 +59,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/*" ];
enabledTestPaths = [ "tests/*" ];
pythonImportsCheck = [ "attacut" ];

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"test/"
];

View File

@ -42,7 +42,7 @@ buildPythonPackage rec {
# Only run this test, the others are integration tests that require
# an instance of aw-server running in order to function.
pytestFlagsArray = [ "tests/test_requestqueue.py" ];
enabledTestPaths = [ "tests/test_requestqueue.py" ];
preCheck = ''
# Fake home folder for tests that write to $HOME

View File

@ -74,7 +74,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "awswrangler" ];
pytestFlagsArray = [
enabledTestPaths = [
# Subset of tests that run in upstream CI (many others require credentials)
# https://github.com/aws/aws-sdk-pandas/blob/20fec775515e9e256e8cee5aee12966516608840/.github/workflows/minimal-tests.yml#L36-L43
"tests/unit/test_metadata.py"

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "tests/ayla_iot_unofficial.py" ];
enabledTestPaths = [ "tests/ayla_iot_unofficial.py" ];
# tests interact with the actual API
doCheck = false;

View File

@ -62,7 +62,7 @@ buildPythonPackage rec {
export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
'';
pytestFlagsArray = [ "tests/" ];
enabledTestPaths = [ "tests/" ];
# disable tests which touch network
disabledTests = [

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
mock
pytestCheckHook
];
pytestFlagsArray = [ "test.py" ];
enabledTestPaths = [ "test.py" ];
pythonImportsCheck = [ "bagit" ];
meta = with lib; {

View File

@ -25,7 +25,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test_base36.py" ];
enabledTestPaths = [ "test_base36.py" ];
pythonImportsCheck = [ "base36" ];
meta = with lib; {

View File

@ -25,7 +25,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
enabledTestPaths = [ "test.py" ];
pythonImportsCheck = [ "beautifultable" ];

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "binary2strings" ];
pytestFlagsArray = [ "tests/test.py" ];
enabledTestPaths = [ "tests/test.py" ];
meta = with lib; {
description = "Module to extract Ascii, Utf8, and Unicode strings from binary data";

View File

@ -48,7 +48,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "biom_tests/tests" ];
enabledTestPaths = [ "biom_tests/tests" ];
pythonImportsCheck = [ "biom" ];

View File

@ -28,7 +28,7 @@ buildPythonPackage rec {
pytest-asyncio
];
pytestFlagsArray = [
enabledTestPaths = [
# All other tests make network requests to exercise the API
"tests/test_async.py::test_generate_async_settings"
"tests/test_async.py::test_url_protocol"

View File

@ -67,7 +67,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "src/blockdiag/tests/" ];
enabledTestPaths = [ "src/blockdiag/tests/" ];
disabledTests = [
# Test require network access

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "braintree" ];
pytestFlagsArray = [
enabledTestPaths = [
"tests/"
"tests/fixtures"
"tests/unit"

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "python/tests" ];
enabledTestPaths = [ "python/tests" ];
meta = with lib; {
homepage = "https://github.com/google/brotli";

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
# Test data is only available from libbrotli git checkout, not brotli.src
doCheck = false;
pytestFlagsArray = [ "test/" ];
enabledTestPaths = [ "test/" ];
pythonImportsCheck = [ "brotlicffi" ];

View File

@ -47,7 +47,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [
enabledTestPaths = [
# only unit tests as integration tests need a OpenSSH client/server setup
"tests/unit"
];

View File

@ -43,7 +43,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "cairosvg/test_api.py" ];
enabledTestPaths = [ "cairosvg/test_api.py" ];
pythonImportsCheck = [ "cairosvg" ];

View File

@ -25,7 +25,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "unittests" ];
enabledTestPaths = [ "unittests" ];
pythonImportsCheck = [ "cart" ];

View File

@ -87,7 +87,7 @@ buildPythonPackage rec {
unset NIX_REDIRECTS LD_PRELOAD
'';
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTestPaths = [
# requires puresasl

View File

@ -46,7 +46,7 @@ buildPythonPackage rec {
pytest-cov-stub
];
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
# Tests require a running Redis backend
disabledTests = [

View File

@ -34,7 +34,7 @@ buildPythonPackage {
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test/test.py" ];
enabledTestPaths = [ "test/test.py" ];
pythonImportsCheck = [ "changefinder" ];

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
'';
# most tests talk to a network service, so only run ones that don't do that.
pytestFlagsArray = [
enabledTestPaths = [
"chart_studio/tests/test_core"
"chart_studio/tests/test_plot_ly/test_api"
];

View File

@ -52,7 +52,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "checkdmarc" ];
pytestFlagsArray = [ "tests.py" ];
enabledTestPaths = [ "tests.py" ];
disabledTests = [
# Tests require network access

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
enabledTestPaths = [ "test.py" ];
meta = with lib; {
description = "Chess library with move generation, move validation, and support for common formats";

View File

@ -26,7 +26,7 @@ buildPythonPackage rec {
pytz
];
pytestFlagsArray = [ "tests/tests.py" ];
enabledTestPaths = [ "tests/tests.py" ];
pythonImportsCheck = [ "ciso8601" ];

View File

@ -65,7 +65,7 @@ buildPythonPackage rec {
'';
# their ci only runs unit tests, there are also integration and fuzzing tests
pytestFlagsArray = [ "./tests/test_unit" ];
enabledTestPaths = [ "./tests/test_unit" ];
disabledTestPaths = [
# ModuleNotFoundError: No module named 'wilderness'

View File

@ -22,7 +22,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests.py" ];
enabledTestPaths = [ "tests.py" ];
pythonImportsCheck = [ "click_command_tree" ];

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test/" ];
enabledTestPaths = [ "test/" ];
pythonImportsCheck = [ "cmigemo" ];

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "tests.py" ];
enabledTestPaths = [ "tests.py" ];
disabledTests = [
# Broken tests

View File

@ -49,7 +49,7 @@ buildPythonPackage rec {
];
# Currently most tests have performance issues
pytestFlagsArray = [ "coconut/tests/constants_test.py" ];
enabledTestPaths = [ "coconut/tests/constants_test.py" ];
pythonImportsCheck = [ "coconut" ];

View File

@ -28,7 +28,7 @@ buildPythonPackage {
pythonImportsCheck = [ "compressed_rtf" ];
pytestFlagsArray = [ "tests/tests.py" ];
enabledTestPaths = [ "tests/tests.py" ];
meta = with lib; {
description = "Compressed Rich Text Format (RTF) compression and decompression";

View File

@ -52,7 +52,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/test_handshakes_offline.py" ];
enabledTestPaths = [ "tests/test_handshakes_offline.py" ];
pythonImportsCheck = [ "consonance" ];

View File

@ -60,7 +60,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "coredis" ];
pytestFlagsArray = [
enabledTestPaths = [
# All other tests require Docker
"tests/test_lru_cache.py"
"tests/test_parsers.py"

View File

@ -102,7 +102,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "craft_application" ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTests =
[

View File

@ -61,7 +61,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };

View File

@ -50,7 +50,7 @@ buildPythonPackage rec {
writableTmpDirAsHomeHook
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
pyyaml
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
# Temp fix for test incompatibility with Python 3.13
disabledTests = [

View File

@ -80,7 +80,7 @@ buildPythonPackage rec {
writableTmpDirAsHomeHook
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTests = [
# Relies upon paths not present in Nix (like /bin/bash)

View File

@ -45,7 +45,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "craft_platforms" ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTests = [
# Attempts to get distro information, and expects "ubuntu-ish"

View File

@ -79,7 +79,7 @@ buildPythonPackage rec {
writableTmpDirAsHomeHook
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
disabledTestPaths = [
# Relies upon "logassert" python package which isn't in nixpkgs

View File

@ -72,7 +72,7 @@ buildPythonPackage rec {
pyyaml
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
# Explicitly set the path to avoid running vendored
# sentencepiece tests.
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
preCheck = ''
# avoid local paths, relative imports wont resolve correctly

View File

@ -67,7 +67,7 @@ buildPythonPackage rec {
export LDFLAGS="-lgomp"
'';
pytestFlagsArray = [ "cvxpy" ];
enabledTestPaths = [ "cvxpy" ];
disabledTests = [
# Disable the slowest benchmarking tests, cuts test time in half

View File

@ -77,7 +77,7 @@ buildPythonPackage rec {
export PYTHONPATH=tests''${PYTHONPATH+:$PYTHONPATH}
'';
pytestFlagsArray = [ "tests/" ];
enabledTestPaths = [ "tests/" ];
disabledTests = [
# These tests require network access

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
enabledTestPaths = [
"tests/"
];

View File

@ -57,7 +57,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "databricks" ];

View File

@ -47,7 +47,7 @@ buildPythonPackage rec {
requests-mock
];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "datapoint" ];

View File

@ -55,7 +55,7 @@ buildPythonPackage rec {
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-isystem ${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
# test suite is very cpu intensive, only run small subset to ensure package is working as expected
pytestFlagsArray = [ "tests/test-sets.py" ];
enabledTestPaths = [ "tests/test-sets.py" ];
disabledTests = [
# skip tests which are irrelevant to our installation or use way too much memory

View File

@ -67,7 +67,7 @@ buildPythonPackage rec {
'';
# Upstream only runs the tests in tests/ in CI, others use git clone
pytestFlagsArray = [ "tests" ];
enabledTestPaths = [ "tests" ];
disabledTests = [
# access network

View File

@ -52,7 +52,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "dbt.adapters.bigquery" ];

View File

@ -43,7 +43,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "dbt.adapters.redshift" ];

View File

@ -29,7 +29,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "dbt.adapters.snowflake" ];

View File

@ -24,7 +24,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/test.py " ];
enabledTestPaths = [ "tests/test.py " ];
meta = with lib; {
changelog = "https://github.com/micheles/decorator/blob/${src.tag}/CHANGES.md";

View File

@ -129,7 +129,7 @@ buildPythonPackage {
rm -r detectron2
'';
pytestFlagsArray = [
enabledTestPaths = [
# prevent include $sourceRoot/projects/*/tests
"tests"
];

Some files were not shown because too many files have changed in this diff Show More