Unverified Commit d9833d82 authored by Yueh-Shun Li's avatar Yueh-Shun Li Committed by GitHub
Browse files

python3Packages: transition from pytestFlagsArray (2nd round) (#452102)

parents 29aaab6f 3c533122
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -214,10 +214,13 @@ buildPythonPackage (finalAttrs: {
    "test_muster_specific_targets_with_dependencies"
  ];

  # in order to use pytest marker, we need to use ppytestFlagsArray
  # using pytestFlags causes `ERROR: file or directory not found: slow`
  pytestFlagsArray = [
    "-m='not slow and not not_in_ci and not regression'"
  disabledTestMarks = [
    "slow"
    "not_in_ci"
    "regression"
  ];

  pytestFlags = [
    "--timeout=10" # any test taking long, timouts with more than 60s
    "--benchmark-disable"
    "--tb=line"
+2 −2
Original line number Diff line number Diff line
@@ -36,9 +36,9 @@ buildPythonPackage rec {

  enabledTestPaths = [ "tests/unit" ];

  pytestFlagsArray = [
  pytestFlags = [
    # pyproject.toml specifies -n auto which only pytest-xdist understands
    "--override-ini addopts=''"
    "--override-ini=addopts="
  ];

  pythonImportsCheck = [ "dbt.adapters.snowflake" ];
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ buildPythonPackage (finalAttrs: {
  ];

  # tries to write to source directory otherwise:
  pytestFlagsArray = [ "-p no:cacheprovider" ];
  pytestFlags = [ "-pno:cacheprovider" ];

  meta = {
    inherit (hydra-core.meta) changelog license;
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/unit_tests" ];
  enabledTestPaths = [ "tests/unit_tests" ];

  pythonImportsCheck = [ "langchain_experimental" ];

+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ buildPythonPackage rec {
    numpy
  ];

  pytestFlagsArray = [ "-v" ];
  pytestFlags = [ "-v" ];

  pythonImportsCheck = [
    "mpl_typst"
Loading