mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Only run documented_views() fixture once per session
Speeds up tests, because previously it ran once per view class.
This commit is contained in:
parent
788a542d3c
commit
8128497b79
1 changed files with 1 additions and 1 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue