From 07130b4c9a23f7f54209e7882830d2f500f58821 Mon Sep 17 00:00:00 2001 From: PhilipMay Date: Tue, 2 Jan 2024 17:43:29 +0100 Subject: [PATCH] Add skip test example for unknown functionality --- source/python/pytest.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/python/pytest.md b/source/python/pytest.md index b317dc3..4d0732f 100644 --- a/source/python/pytest.md +++ b/source/python/pytest.md @@ -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 + ## Expect Test to fail ## Flaky Tests