Skip to content

Commit

Permalink
Declares pytest fixtures as a new rule dictates
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Apr 14, 2024
1 parent 60e7b3e commit 123b2cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmarks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def _collect_garbage():
gc.collect()


@pytest.fixture()
@pytest.fixture
def docs():
return DOCUMENTS
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
_referenced_objects_for_wrapper_cache_tests = {}


@pytest.fixture()
@pytest.fixture
def files_path():
return FILES_PATH


@pytest.fixture()
@pytest.fixture
def long_term_references():
return _referenced_objects_for_wrapper_cache_tests


@pytest.fixture()
@pytest.fixture
def result_file():
return RESULTS_FILE


@pytest.fixture()
@pytest.fixture
def queries_sample():
return Document(
"""\
Expand All @@ -48,7 +48,7 @@ def _reset_serializer():
DefaultStringOptions.reset_defaults()


@pytest.fixture()
@pytest.fixture
def sample_document():
return Document(
'<doc xmlns="https://name.space">'
Expand Down

0 comments on commit 123b2cb

Please sign in to comment.