Skip to content

Commit

Permalink
Add skip test example for unknown functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Jan 2, 2024
1 parent 0188789 commit 07130b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/python/pytest.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ def test_eval(test_input, expected):

## Skip Tests

```python
import pytest

@pytest.mark.skip(reason="no way of currently testing this")
def test_the_unknown():
...
```

- also see <https://docs.pytest.org/en/7.1.x/how-to/skipping.html#skipping-test-functions>

## Expect Test to fail

## Flaky Tests
Expand Down

0 comments on commit 07130b4

Please sign in to comment.