Skip to content

Commit b6482f0

Browse files
test(tox): Unpin pytest for celery tests (#3701)
Unpin pytest for Celery tests. This requires adding a placeholder test to workaround a bug with pytest-forked. ref #3035
1 parent 7e52235 commit b6482f0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/integrations/celery/test_celery.py

+8
Original file line numberDiff line numberDiff line change
@@ -831,3 +831,11 @@ def test_send_task_wrapped(
831831
assert span["description"] == "very_creative_task_name"
832832
assert span["op"] == "queue.submit.celery"
833833
assert span["trace_id"] == kwargs["headers"]["sentry-trace"].split("-")[0]
834+
835+
836+
@pytest.mark.skip(reason="placeholder so that forked test does not come last")
837+
def test_placeholder():
838+
"""Forked tests must not come last in the module.
839+
See https://github.com/pytest-dev/pytest-forked/issues/67#issuecomment-1964718720.
840+
"""
841+
pass

tox.ini

-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ deps =
375375
celery-latest: Celery
376376

377377
celery: newrelic
378-
celery: pytest<7
379378
{py3.7}-celery: importlib-metadata<5.0
380379

381380
# Chalice

0 commit comments

Comments
 (0)