python3Packages.pytestCheckHook: support enabledTests
This commit is contained in:
@@ -109,6 +109,7 @@ let
|
||||
"disabledTestPaths"
|
||||
"disabledTests"
|
||||
"enabledTestPaths"
|
||||
"enabledTests"
|
||||
"pytestFlags"
|
||||
"pytestFlagsArray"
|
||||
"unittestFlags"
|
||||
@@ -451,13 +452,14 @@ let
|
||||
lib.mapAttrs
|
||||
(
|
||||
name: value:
|
||||
lib.throwIf (attrs.${name} == [ ])
|
||||
"${lib.getName finalAttrs}: ${name} must be unspecified, null or a non-empty list."
|
||||
attrs.${name}
|
||||
lib.throwIf (
|
||||
attrs.${name} == [ ]
|
||||
) "${lib.getName finalAttrs}: ${name} must be unspecified, null or a non-empty list." attrs.${name}
|
||||
)
|
||||
(
|
||||
getOptionalAttrs [
|
||||
"enabledTestPaths"
|
||||
"enabledTests"
|
||||
] attrs
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user