Skip to content

Commit 9aa6d84

Browse files
committed
ci: Update for indepndent each tests
1 parent 3320b4b commit 9aa6d84

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_adapters/test_sphinx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class TestFor_OembedDomain__merge_domaindata:
7272

7373
@pytest.mark.sphinx("html", testroot="default")
7474
def test_difference_items(self, app: SphinxTestApp):
75-
domain1 = T.OembedDomain(app.env)
75+
domain1 = T.OembedDomain(BuildEnvironment(app))
7676
domain1.caches[self.CACHE_KEY] = Link(type="link", version="1.0", _extra={})
7777
domain2 = T.OembedDomain(BuildEnvironment(app))
7878
domain2.caches[("http://example.com", 1, 2)] = Link(
@@ -83,7 +83,7 @@ def test_difference_items(self, app: SphinxTestApp):
8383

8484
@pytest.mark.sphinx("html", testroot="default")
8585
def test_keep_main_domain(self, app: SphinxTestApp):
86-
domain1 = T.OembedDomain(app.env)
86+
domain1 = T.OembedDomain(BuildEnvironment(app))
8787
domain1.caches[self.CACHE_KEY] = Link(
8888
type="link", version="1.0", title="Hello", _extra={}
8989
)
@@ -99,7 +99,7 @@ def test_keep_main_domain(self, app: SphinxTestApp):
9999

100100
@pytest.mark.sphinx("html", testroot="default")
101101
def test_keep_overrides(self, app: SphinxTestApp):
102-
domain1 = T.OembedDomain(app.env)
102+
domain1 = T.OembedDomain(BuildEnvironment(app))
103103
link1 = Link(type="link", version="1.0", title="Hello", _extra={})
104104
link1._expired = 3600
105105
domain1.caches[self.CACHE_KEY] = link1

0 commit comments

Comments
 (0)