Skip to content

Commit

Permalink
explicit use of fixture decorator (#1783) (#1813)
Browse files Browse the repository at this point in the history
(cherry picked from commit ff406e9)
  • Loading branch information
miguelgrinberg authored Apr 29, 2024
1 parent 5f18da2 commit e1cfee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from datetime import datetime

import pytest
from pytest_asyncio import fixture
import pytest_asyncio

from elasticsearch_dsl import Q

Expand All @@ -41,7 +41,7 @@
)


@fixture
@pytest_asyncio.fixture
async def question(async_write_client):
await setup()
assert await async_write_client.indices.exists_template(name="base")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from datetime import datetime

import pytest
from pytest import fixture

from elasticsearch_dsl import Q

Expand All @@ -41,7 +40,7 @@
)


@fixture
@pytest.fixture
def question(write_client):
setup()
assert write_client.indices.exists_template(name="base")
Expand Down

0 comments on commit e1cfee3

Please sign in to comment.