Skip to content

Commit

Permalink
Fix unit test example in contrib doc (NVIDIA#759)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Hickey <[email protected]>
  • Loading branch information
hickeyma authored Mar 27, 2024
1 parent 79ed2a0 commit 275b858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ Running unit tests can be done with:
tox -e unit
```

By default, all tests found within the `tests` directory are run. However, specific unit tests can run by passing filenames, classes and/or methods to `pytest` using tox positional arguments. The following example invokes a single test method `test_list_invalid_base` within the `TestLabList` class that is declared in the `tests/test_lab_list.py` file:
By default, all tests found within the `tests` directory are run. However, specific unit tests can run by passing filenames, classes and/or methods to `pytest` using tox positional arguments. The following example invokes a single test method `test_diff_invalid_base` within the `TestLabDiff` class that is declared in the `tests/test_lab_diff.py` file:

```shell
tox -e unit -- tests/test_lab_list.py::TestLabList::test_list_invalid_base
tox -e unit -- tests/test_lab_diff.py::TestLabDiff::test_diff_invalid_base
```

#### Functional tests
Expand Down

0 comments on commit 275b858

Please sign in to comment.