Skip to content

Commit e5042cb

Browse files
gerrod3cursoragent
andcommitted
Isolate shelf-reader test pollution on 3.27 branch.
Run the brittle pypi JSON assertions outside the parallel suite with delete_orphans_pre so orphaned shelf-reader content cannot cause flaky failures. Assisted-by: Cursor Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f67d068 commit e5042cb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎pulp_python/tests/functional/api/test_pypi_apis.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,9 @@ def test_simple_redirect_with_publications(
245245
assert response.url == str(urljoin(pulp_content_url, f"{distro.base_path}/simple/"))
246246

247247

248-
@pytest.mark.parallel
249-
def test_pypi_json(python_remote_factory, python_repo_with_sync, python_distribution_factory):
248+
def test_pypi_json(
249+
delete_orphans_pre, python_remote_factory, python_repo_with_sync, python_distribution_factory
250+
):
250251
"""Checks the data of `pypi/{package_name}/json` endpoint."""
251252
remote = python_remote_factory(policy="immediate")
252253
repo = python_repo_with_sync(remote)
@@ -260,8 +261,8 @@ def test_pypi_json(python_remote_factory, python_repo_with_sync, python_distribu
260261
assert_pypi_json(response.json())
261262

262263

263-
@pytest.mark.parallel
264264
def test_pypi_json_content_app(
265+
delete_orphans_pre,
265266
python_remote_factory,
266267
python_repo_with_sync,
267268
python_publication_factory,

0 commit comments

Comments
 (0)