treewide: pytestFlagsArray -> enabledTestPaths (trivial)
This commit is contained in:
parent
d2d6914c8a
commit
794f904bf3
@ -29,7 +29,7 @@ python3Packages.buildPythonApplication rec {
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
enabledTestPaths = [ "tests/" ];
|
||||
|
||||
meta = {
|
||||
description = "Mopidy extension for playing music from Tidal";
|
||||
|
||||
@ -58,7 +58,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
umockdev
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"test"
|
||||
];
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pycryptodomex
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
enabledTestPaths = [ "tests" ];
|
||||
|
||||
postCheck = ''
|
||||
$out/bin/electrum help >/dev/null
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -59,7 +59,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
unittest-xml-reporting
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"test"
|
||||
];
|
||||
|
||||
|
||||
@ -119,7 +119,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
rm ../testing/adios2/python/TestBPWriteTypesHighLevelAPI.py
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"../testing/adios2/python/Test*.py"
|
||||
];
|
||||
|
||||
|
||||
@ -289,7 +289,7 @@ buildPythonPackage rec {
|
||||
airflow db reset -y
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/core/test_core.py"
|
||||
];
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ python3Packages.buildPythonPackage rec {
|
||||
"pierky.arouteserver"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/static" ];
|
||||
enabledTestPaths = [ "tests/static" ];
|
||||
|
||||
disabledTests = [
|
||||
# disable copyright year check of files
|
||||
|
||||
@ -70,7 +70,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/unit"
|
||||
];
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
python3Packages.pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "test.py" ];
|
||||
enabledTestPaths = [ "test.py" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Storage conversion and expression calculator";
|
||||
|
||||
@ -39,7 +39,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests"
|
||||
];
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTests = [
|
||||
# Relies upon the `charm` tool being installed
|
||||
|
||||
@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
wireshark-cli
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/tests.py"
|
||||
];
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ python3Packages.buildPythonApplication rec {
|
||||
time-machine
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"fittrackee"
|
||||
];
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"test_reading"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "../tests" ];
|
||||
enabledTestPaths = [ "../tests" ];
|
||||
|
||||
meta = {
|
||||
description = "Macromolecular crystallography library and utilities";
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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" ];
|
||||
|
||||
@ -52,7 +52,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
pythonImportsCheck = [ "memray" ];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
enabledTestPaths = [ "tests" ];
|
||||
|
||||
disabledTests = [
|
||||
# Import issue
|
||||
|
||||
@ -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" ];
|
||||
|
||||
|
||||
@ -268,7 +268,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
# manually managed in postPatch
|
||||
dontUsePytestXdist = false;
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"src"
|
||||
];
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ python3Packages.buildPythonApplication rec {
|
||||
python3Packages.pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/*.py"
|
||||
];
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -50,7 +50,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
|
||||
pythonImportsCheck = [ "s3ql" ];
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
enabledTestPaths = [ "tests/" ];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
|
||||
@ -88,7 +88,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/tests.py"
|
||||
"tests/test_expand.py"
|
||||
"tests/test_io.py"
|
||||
|
||||
@ -141,7 +141,7 @@ python312Packages.buildPythonApplication rec {
|
||||
squashfsTools
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTests = [
|
||||
"test_bin_echo"
|
||||
|
||||
@ -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.";
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "src/actdiag/tests/" ];
|
||||
enabledTestPaths = [ "src/actdiag/tests/" ];
|
||||
|
||||
disabledTests = [
|
||||
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
|
||||
|
||||
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "aeidon/test" ];
|
||||
enabledTestPaths = [ "aeidon/test" ];
|
||||
|
||||
disabledTests = [
|
||||
# requires gspell to work with gobject introspection
|
||||
|
||||
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "async_tests.py" ];
|
||||
enabledTestPaths = [ "async_tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "afsapi" ];
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/ahocorapy_test.py"
|
||||
];
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||
pytest-cov-stub
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
enabledTestPaths = [ "tests" ];
|
||||
pythonImportsCheck = [ "aiokef" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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" ];
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "ancpbids" ];
|
||||
|
||||
pytestFlagsArray = [ "tests/auto" ];
|
||||
enabledTestPaths = [ "tests/auto" ];
|
||||
|
||||
disabledTests = [ "test_fetch_dataset" ];
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
pytest-cov-stub
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests.py" ];
|
||||
enabledTestPaths = [ "tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "anonip" ];
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -62,7 +62,7 @@ buildPythonPackage rec {
|
||||
requests-mock
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/"
|
||||
];
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "test_apipkg.py" ];
|
||||
enabledTestPaths = [ "test_apipkg.py" ];
|
||||
|
||||
pythonImportsCheck = [ "apipkg" ];
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/test_asn1.py" ];
|
||||
enabledTestPaths = [ "tests/test_asn1.py" ];
|
||||
|
||||
pythonImportsCheck = [ "asn1" ];
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "asyncinotify" ];
|
||||
|
||||
pytestFlagsArray = [ "test.py" ];
|
||||
enabledTestPaths = [ "test.py" ];
|
||||
|
||||
meta = with lib; {
|
||||
badPlatforms = [
|
||||
|
||||
@ -59,7 +59,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/*" ];
|
||||
enabledTestPaths = [ "tests/*" ];
|
||||
|
||||
pythonImportsCheck = [ "attacut" ];
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"test/"
|
||||
];
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -62,7 +62,7 @@ buildPythonPackage rec {
|
||||
export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
enabledTestPaths = [ "tests/" ];
|
||||
|
||||
# disable tests which touch network
|
||||
disabledTests = [
|
||||
|
||||
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
pytestFlagsArray = [ "test.py" ];
|
||||
enabledTestPaths = [ "test.py" ];
|
||||
pythonImportsCheck = [ "bagit" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "test_base36.py" ];
|
||||
enabledTestPaths = [ "test_base36.py" ];
|
||||
pythonImportsCheck = [ "base36" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "test.py" ];
|
||||
enabledTestPaths = [ "test.py" ];
|
||||
|
||||
pythonImportsCheck = [ "beautifultable" ];
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -48,7 +48,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "biom_tests/tests" ];
|
||||
enabledTestPaths = [ "biom_tests/tests" ];
|
||||
|
||||
pythonImportsCheck = [ "biom" ];
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -67,7 +67,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "src/blockdiag/tests/" ];
|
||||
enabledTestPaths = [ "src/blockdiag/tests/" ];
|
||||
|
||||
disabledTests = [
|
||||
# Test require network access
|
||||
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "braintree" ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/"
|
||||
"tests/fixtures"
|
||||
"tests/unit"
|
||||
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "python/tests" ];
|
||||
enabledTestPaths = [ "python/tests" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/google/brotli";
|
||||
|
||||
@ -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" ];
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
# only unit tests as integration tests need a OpenSSH client/server setup
|
||||
"tests/unit"
|
||||
];
|
||||
|
||||
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "cairosvg/test_api.py" ];
|
||||
enabledTestPaths = [ "cairosvg/test_api.py" ];
|
||||
|
||||
pythonImportsCheck = [ "cairosvg" ];
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "unittests" ];
|
||||
enabledTestPaths = [ "unittests" ];
|
||||
|
||||
pythonImportsCheck = [ "cart" ];
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ buildPythonPackage rec {
|
||||
unset NIX_REDIRECTS LD_PRELOAD
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires puresasl
|
||||
|
||||
@ -46,7 +46,7 @@ buildPythonPackage rec {
|
||||
pytest-cov-stub
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
enabledTestPaths = [ "tests" ];
|
||||
|
||||
# Tests require a running Redis backend
|
||||
disabledTests = [
|
||||
|
||||
@ -34,7 +34,7 @@ buildPythonPackage {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
pytestFlagsArray = [ "test/test.py" ];
|
||||
enabledTestPaths = [ "test/test.py" ];
|
||||
|
||||
pythonImportsCheck = [ "changefinder" ];
|
||||
|
||||
|
||||
@ -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"
|
||||
];
|
||||
|
||||
@ -52,7 +52,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "checkdmarc" ];
|
||||
|
||||
pytestFlagsArray = [ "tests.py" ];
|
||||
enabledTestPaths = [ "tests.py" ];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
pytz
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/tests.py" ];
|
||||
enabledTestPaths = [ "tests/tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "ciso8601" ];
|
||||
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests.py" ];
|
||||
enabledTestPaths = [ "tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "click_command_tree" ];
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "test/" ];
|
||||
enabledTestPaths = [ "test/" ];
|
||||
|
||||
pythonImportsCheck = [ "cmigemo" ];
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests.py" ];
|
||||
enabledTestPaths = [ "tests.py" ];
|
||||
|
||||
disabledTests = [
|
||||
# Broken tests
|
||||
|
||||
@ -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" ];
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -52,7 +52,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/test_handshakes_offline.py" ];
|
||||
enabledTestPaths = [ "tests/test_handshakes_offline.py" ];
|
||||
|
||||
pythonImportsCheck = [ "consonance" ];
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "coredis" ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
# All other tests require Docker
|
||||
"tests/test_lru_cache.py"
|
||||
"tests/test_parsers.py"
|
||||
|
||||
@ -102,7 +102,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "craft_application" ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
|
||||
@ -61,7 +61,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ buildPythonPackage rec {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
# Temp fix for test incompatibility with Python 3.13
|
||||
disabledTests = [
|
||||
|
||||
@ -80,7 +80,7 @@ buildPythonPackage rec {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTests = [
|
||||
# Relies upon paths not present in Nix (like /bin/bash)
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -79,7 +79,7 @@ buildPythonPackage rec {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Relies upon "logassert" python package which isn't in nixpkgs
|
||||
|
||||
@ -72,7 +72,7 @@ buildPythonPackage rec {
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -67,7 +67,7 @@ buildPythonPackage rec {
|
||||
export LDFLAGS="-lgomp"
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "cvxpy" ];
|
||||
enabledTestPaths = [ "cvxpy" ];
|
||||
|
||||
disabledTests = [
|
||||
# Disable the slowest benchmarking tests, cuts test time in half
|
||||
|
||||
@ -77,7 +77,7 @@ buildPythonPackage rec {
|
||||
export PYTHONPATH=tests''${PYTHONPATH+:$PYTHONPATH}
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
enabledTestPaths = [ "tests/" ];
|
||||
|
||||
disabledTests = [
|
||||
# These tests require network access
|
||||
|
||||
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
enabledTestPaths = [
|
||||
"tests/"
|
||||
];
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [ "databricks" ];
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ buildPythonPackage rec {
|
||||
requests-mock
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [ "datapoint" ];
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -52,7 +52,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [ "dbt.adapters.bigquery" ];
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [ "dbt.adapters.redshift" ];
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
enabledTestPaths = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [ "dbt.adapters.snowflake" ];
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user