mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
python3Packages.detect-secrets: disable tests for optional dependencies
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user