Update reference documentation for `-k` to double quotes
This commit is contained in:
parent
72469db32b
commit
96376ac79c
|
@ -1815,15 +1815,15 @@ All the command-line flags can be obtained by running ``pytest --help``::
|
|||
expression. An expression is a python evaluatable
|
||||
expression where all names are substring-matched
|
||||
against test names and their parent classes.
|
||||
Example: -k 'test_method or test_other' matches all
|
||||
Example: -k "test_method or test_other" matches all
|
||||
test functions and classes whose name contains
|
||||
'test_method' or 'test_other', while -k 'not
|
||||
test_method' matches those that don't contain
|
||||
'test_method' in their names. -k 'not test_method
|
||||
and not test_other' will eliminate the matches.
|
||||
"test_method" or "test_other", while -k "not
|
||||
test_method" matches those that don't contain
|
||||
"test_method" in their names. -k "not test_method
|
||||
and not test_other" will eliminate the matches.
|
||||
Additionally keywords are matched to classes and
|
||||
functions containing extra names in their
|
||||
'extra_keyword_matches' set, as well as functions
|
||||
"extra_keyword_matches" set, as well as functions
|
||||
which have names assigned directly to them. The
|
||||
matching is case-insensitive. For the default
|
||||
windows terminal double quotes are preferred.
|
||||
|
|
Loading…
Reference in New Issue