From 8128497b7946ab68fff703e207fc7c5b26b6e9c9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 27 Jul 2018 21:49:20 -0700 Subject: [PATCH] Only run documented_views() fixture once per session Speeds up tests, because previously it ran once per view class. --- tests/test_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_docs.py b/tests/test_docs.py index 18d3738c..510d8e1a 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -57,7 +57,7 @@ def test_plugin_hooks_are_documented(plugin): assert plugin in headings -@pytest.fixture +@pytest.fixture(scope="session") def documented_views(): view_labels = set() for filename in docs_path.glob("*.rst"):