Update usage.rst

A note is added for that single quotation is used in Windows.
This commit is contained in:
Tom Lee 2023-05-08 20:54:52 -07:00 committed by Bruno Oliveira
parent 271bdf6c23
commit d25580676e
1 changed files with 2 additions and 1 deletions

View File

@ -35,11 +35,12 @@ Pytest supports several ways to run and select tests from the command-line.
.. code-block:: bash
pytest -k "MyClass and not method"
pytest -k 'MyClass and not method'
This will run tests which contain names that match the given *string expression* (case-insensitive),
which can include Python operators that use filenames, class names and function names as variables.
The example above will run ``TestMyClass.test_something`` but not ``TestMyClass.test_method_simple``.
Use ``"`` instead of ``''`` in expression when running this on Windows
.. _nodeids: