Skip to content

Commit e1cfee3

Browse files
explicit use of fixture decorator (#1783) (#1813)
(cherry picked from commit ff406e9)
1 parent 5f18da2 commit e1cfee3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/test_integration/test_examples/_async/test_parent_child.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from datetime import datetime
1919

2020
import pytest
21-
from pytest_asyncio import fixture
21+
import pytest_asyncio
2222

2323
from elasticsearch_dsl import Q
2424

@@ -41,7 +41,7 @@
4141
)
4242

4343

44-
@fixture
44+
@pytest_asyncio.fixture
4545
async def question(async_write_client):
4646
await setup()
4747
assert await async_write_client.indices.exists_template(name="base")

tests/test_integration/test_examples/_sync/test_parent_child.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from datetime import datetime
1919

2020
import pytest
21-
from pytest import fixture
2221

2322
from elasticsearch_dsl import Q
2423

@@ -41,7 +40,7 @@
4140
)
4241

4342

44-
@fixture
43+
@pytest.fixture
4544
def question(write_client):
4645
setup()
4746
assert write_client.indices.exists_template(name="base")

0 commit comments

Comments
 (0)