Skip to content

Commit 37357bc

Browse files
committed
Silence ruff ARG001 on pytest fixture arguments in the interval experiment tests
The `db` and `content_pks` arguments are requested for their fixture side effects and are not used in the function bodies. Mark them with the repo's usual `# noqa: ARG001`, which fixes the "Ruff: New Violations" check on #1643.
1 parent d8e0f5f commit 37357bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎pulp_service/pulp_service/tests/unit/test_interval_content_experiment.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717

1818
@pytest.fixture
19-
def repository(db):
19+
def repository(db): # noqa: ARG001
2020
repository = Repository.objects.create(name=uuid4())
2121
repository.CONTENT_TYPES = [Content]
2222
return repository
2323

2424

2525
@pytest.fixture
26-
def content_pks(db):
26+
def content_pks(db): # noqa: ARG001
2727
contents = [Content(pulp_type="core.content") for _ in range(5)]
2828
Content.objects.bulk_create(contents)
2929
return sorted([content.pk for content in contents])
@@ -129,7 +129,7 @@ def test_get_content_experiment_dispatch(repository, content_pks, add_content, m
129129
assert all(dispatch.get("correlation_id") for dispatch in dispatches)
130130

131131

132-
def test_get_content_marks_sql_per_variant(repository, content_pks, add_content, monkeypatch):
132+
def test_get_content_marks_sql_per_variant(repository, content_pks, add_content, monkeypatch): # noqa: ARG001
133133
"""Both variants must reach the database with their RDS Performance Insights marker."""
134134
with repository.new_version() as version:
135135
add_content(version, (1, 1, 1, 1, 1))

0 commit comments

Comments
 (0)