python3Packages.detect-secrets: disable tests for optional dependencies

This commit is contained in:
Ben Brown
2026-07-21 14:08:53 +01:00
parent a2ba1adc57
commit 340d0ca38e

View File

@@ -65,8 +65,20 @@ buildPythonPackage rec {
"test_make_decisions"
"test_saves_to_baseline"
"test_start_halfway"
]
++ lib.optionals (!withGibberish) [
"test_load_and_output"
"test_quit_if_baseline_is_changed_but_not_staged"
];
disabledTestPaths =
lib.optionals (!withGibberish) [
"tests/filters/gibberish_filter_test.py"
]
++ lib.optionals (!withWordList) [
"tests/filters/wordlist_filter_test.py"
];
pythonImportsCheck = [ "detect_secrets" ];
meta = {