Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Jan 11, 2024
1 parent be39fa0 commit 04ebcad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions src/pytest_celery/api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,6 @@ def create_setup_app(cls, celery_setup_config: dict, celery_setup_app_name: str)

return app

def chords_allowed(self) -> bool:
# TODO: Possibly a not relevant
try:
self.app.backend.ensure_chords_allowed()
except NotImplementedError:
return False

# TODO: Possibly a bug
if any([v.startswith("4.") for v in self.worker_cluster.versions]):
return False

return True

def teardown(self) -> None:
"""Teardown the setup."""

Expand Down
3 changes: 0 additions & 3 deletions tests/smoke/test_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ def test_chain(self, celery_setup: CeleryTestSetup):

def test_chord(self, celery_setup: CeleryTestSetup):
worker: CeleryTestWorker
if not celery_setup.chords_allowed():
pytest.skip("Chords are not supported")

for worker in celery_setup.worker_cluster:
queue = worker.worker_queue

Expand Down

0 comments on commit 04ebcad

Please sign in to comment.