Skip to content

Commit

Permalink
Bugfix: WORKER_DOCKERFILE_ROOTDIR now uses resource_filename()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Jan 7, 2024
1 parent c174fc0 commit cae02d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytest_celery/vendors/worker/defaults.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from pkg_resources import resource_filename

Check warning on line 1 in src/pytest_celery/vendors/worker/defaults.py

View check run for this annotation

Codecov / codecov/patch

src/pytest_celery/vendors/worker/defaults.py#L1

Added line #L1 was not covered by tests

CELERY_SETUP_WORKER = "celery_setup_worker"
DEFAULT_WORKER = "default_worker_container"
WORKER_DOCKERFILE_ROOTDIR = "src/pytest_celery/vendors/worker"
WORKER_DOCKERFILE_ROOTDIR = resource_filename("pytest_celery.vendors.worker", "")

Check warning on line 5 in src/pytest_celery/vendors/worker/defaults.py

View check run for this annotation

Codecov / codecov/patch

src/pytest_celery/vendors/worker/defaults.py#L5

Added line #L5 was not covered by tests
WORKER_CELERY_APP_NAME = "celery_test_app"
WORKER_CELERY_VERSION = "" # latest from pypi
WORKER_LOG_LEVEL = "INFO"
Expand Down

0 comments on commit cae02d7

Please sign in to comment.