diff --git a/arkindex_worker/worker/base.py b/arkindex_worker/worker/base.py index f9f9928ec43d9455b36f4ce42818e2ff9ab042f7..1c76157cbf358d8440ed050603ce44ca8834ddef 100644 --- a/arkindex_worker/worker/base.py +++ b/arkindex_worker/worker/base.py @@ -62,7 +62,7 @@ class BaseWorker(object): logger.info(f"Worker will use {self.work_dir} as working directory") self.process_information = None - self.user_configuration = None + self.user_configuration = {} self.support_cache = support_cache # use_cache will be updated in configure() if the cache is supported and if there # is at least one available sqlite database either given or in the parent tasks diff --git a/tests/test_base_worker.py b/tests/test_base_worker.py index e1d450780ffc14e54def8f9053c9cfe3c65446be..4e8c3c0123ee27a58c44dc823079b74fd3c1e971 100644 --- a/tests/test_base_worker.py +++ b/tests/test_base_worker.py @@ -136,7 +136,7 @@ def test_configure_dev_mode( assert worker.process_information is None assert worker.worker_version_id == "12341234-1234-1234-1234-123412341234" assert worker.is_read_only is True - assert worker.user_configuration is None + assert worker.user_configuration == {} def test_configure_worker_run(mocker, monkeypatch, responses, mock_config_api):