Commit 10349c34 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.mechanize: enable tests

parent 4ca74b16
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, html5lib
, pytestCheckHook
, pythonOlder
, setuptools
}:
@@ -26,12 +27,26 @@ buildPythonPackage rec {
    html5lib
  ];

  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "mechanize"
  ];

  disabledTestPaths = [
    # Tests require network access
    "test/test_urllib2_localnet.py"
    "test/test_functional.py"
  ];

  disabledTests = [
    # Tests require network access
    "test_pickling"
    "test_password_manager"
  ];

  meta = with lib; {
    description = "Stateful programmatic web browsing in Python";
    homepage = "https://github.com/python-mechanize/mechanize";