-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
plugin: pytesterrelated to the pytester builtin pluginrelated to the pytester builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
In #6653 consecutive was added, which allows to ensure that the subset of lines is matched consecutively.
However, it would also be useful to have a mode that ensures that all expected
lines are in the output, e.g. complete=True: LineMatcher(["unexpected", "1", "2", "3"]).fnmatch_lines(["1", "2", "3"], complete=True) should fail then (since "unexpected" was not asserted).
Given that consecutive has not been released and that it overlaps (since complete would imply consecutive) it might be worth to change this into a more generic mode argument.
Zac-HD and nicoddemus
Metadata
Metadata
Assignees
Labels
plugin: pytesterrelated to the pytester builtin pluginrelated to the pytester builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch