We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f99ead commit d400791Copy full SHA for d400791
tests/conftest.py
@@ -1,21 +1,25 @@
1
+from pathlib import Path
2
+
3
import pytest
4
+import sphinx
5
from bs4 import BeautifulSoup
-from sphinx.testing.path import path
-
-from sphinx.application import Sphinx
6
7
8
-pytest_plugins = "sphinx.testing.fixtures"
+pytest_plugins = ["sphinx.testing.fixtures"]
9
10
11
@pytest.fixture(scope="session")
12
def rootdir():
13
- return path(__file__).parent.abspath() / "roots"
+ if sphinx.version_info[:2] >= (7, 0):
+ return Path(__file__).parent.resolve() / "roots"
14
+ else:
15
+ from sphinx.testing.path import path
16
17
+ return path(__file__).parent.abspath() / "roots"
18
19
20
@pytest.fixture()
21
def content(app):
- app.build()
22
+ app.build(force_all=True)
23
yield app
24
25
0 commit comments