Only run documented_views() fixture once per session

Speeds up tests, because previously it ran once per view class.
This commit is contained in:
Simon Willison 2018-07-27 21:49:20 -07:00
commit 8128497b79
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -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"):