From c3e4ba4763def05a15441193efd1cbf2efebd2f5 Mon Sep 17 00:00:00 2001 From: Anchit Date: Mon, 22 May 2023 15:01:15 +0100 Subject: [PATCH] adds .example marker ignored by default in pytest runs Signed-off-by: Anchit --- pytest.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index c13a9f8f8..559bbb644 100644 --- a/pytest.ini +++ b/pytest.ini @@ -7,7 +7,9 @@ DJANGO_SETTINGS_MODULE = rcpch-audit-engine.settings python_files = test_*.py # RE USE TEST DB AS DEFAULT -addopts = --reuse-db +addopts = + --reuse-db + -k "not examples" markers = examples: mark test as workshop-type / example test