Commit 8b871235 authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.reptor: skip all integration tests

Currently four tests fail with

    RuntimeError: APIClient cannot be used in tests. Patch methods as needed.
parent 51b74124
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  deepl,
  django,
  fetchFromGitHub,
  fetchpatch,
  gql,
  pytestCheckHook,
  pyyaml,
@@ -34,6 +35,14 @@ buildPythonPackage rec {
    hash = "sha256-nNG4rQHloOqcPZPnvw3hbw0+wCbB2XAdQ5/XnJtCHnE=";
  };

  patches = [
    # https://github.com/Syslifters/reptor/pull/221
    (fetchpatch {
      url = "https://github.com/Syslifters/reptor/commit/0fc43c246e2f99aaac9e78af818f360a3a951980.patch";
      hash = "sha256-eakbI7hMJdshD0OA6n7dEO4+qPB21sYl09uZgepiWu0=";
    })
  ];

  pythonRelaxDeps = true;

  build-system = [ setuptools ];
@@ -69,15 +78,9 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "reptor" ];

  disabledTestPaths = [
    # Tests want to use pip install dependencies
    "reptor/plugins/importers/GhostWriter/tests/test_ghostwriter.py"
  ];

  disabledTests = [
  disabledTestMarks = [
    # Tests need network access
    "TestDummy"
    "TestIntegration"
    "integration"
  ];

  meta = with lib; {