From b6d8442c8ea4f93c9b8ea42935e09840ef79a6b8 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 14 Oct 2024 10:50:53 -0400 Subject: [PATCH] Remove some celery cruft. --- lib/galaxy_test/api/conftest.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/galaxy_test/api/conftest.py b/lib/galaxy_test/api/conftest.py index e8cc4e2dcd42..5c0b36753995 100644 --- a/lib/galaxy_test/api/conftest.py +++ b/lib/galaxy_test/api/conftest.py @@ -81,15 +81,9 @@ def anonymous_galaxy_interactor(api_test_config_object: ApiConfigObject) -> Anon return AnonymousGalaxyInteractor(api_test_config_object) -_celery_app = None -_celery_worker = None - - @pytest.fixture(autouse=True, scope="session") def request_celery_app(celery_session_app, celery_config): try: - global _celery_app - _celery_app = celery_session_app yield finally: if os.environ.get("GALAXY_TEST_EXTERNAL") is None: @@ -101,8 +95,7 @@ def request_celery_app(celery_session_app, celery_config): @pytest.fixture(autouse=True, scope="session") def request_celery_worker(celery_session_worker, celery_config, celery_worker_parameters): - global _celery_worker - _celery_worker = celery_session_worker + yield @pytest.fixture(scope="session", autouse=True)