diff options
author | Anthony Roussel <anthony@roussel.dev> | 2023-10-22 22:24:03 +0200 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2023-10-22 22:31:57 +0200 |
commit | 0f9ecf1da34ecaa078f674532a30b714808c6383 (patch) | |
tree | dacb2bc0f70c34a5bfd255bbae2b15e767e8a4ab /pkgs/development | |
parent | e3318309ab100cc5b33e9266b7163550a833527d (diff) |
python311Packages.mat2: disable test_all_parametred test
`test_all_parametred` test is too sensitive. It frequently fails when exiftool is updated and adds support for new metadata. Also migrated `unittestCheckHook` to `pytestCheckHook` to be able to disable the test (not possible easily with unittest). We can do that safely since pytest also supports unittest test suites.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/mat2/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/mat2/default.nix b/pkgs/development/python-modules/mat2/default.nix index 97b9090cc2501..1646d3ac72460 100644 --- a/pkgs/development/python-modules/mat2/default.nix +++ b/pkgs/development/python-modules/mat2/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , buildPythonPackage -, unittestCheckHook +, pytestCheckHook , pythonOlder , fetchFromGitLab , substituteAll @@ -88,9 +88,12 @@ buildPythonPackage rec { install -Dm 444 dolphin/mat2.desktop -t "$out/share/kservices5/ServiceMenus" ''; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; - unittestFlagsArray = [ "-v" ]; + disabledTests = [ + # Frequently fails when exiftool is updated and adds support for new metadata. + "test_all_parametred" + ]; meta = with lib; { description = "A handy tool to trash your metadata"; |