diff --git a/test/test_celery_worker_global.py b/test/test_celery_worker_global.py index ead1212b3526f82bf52138231508eeeec8dd21be..dd840d3f9e1ab189a974e48c0ab6d159fbbb3172 100644 --- a/test/test_celery_worker_global.py +++ b/test/test_celery_worker_global.py @@ -3,6 +3,7 @@ just checks that the worker methods call the right functions and some data ends up in the right place ... otherwise not very detailed """ import contextlib +import os from inventory_provider.tasks import worker @@ -46,3 +47,10 @@ def test_update_locations(mocker, mocked_worker_module, mocked_redis): assert len(list(_cached_locations())) == 0 # sanity worker.update_equipment_locations() assert len(list(_cached_locations())) > 0 + + +def test_InventoryTask_obj(data_config_filename): + + os.environ['INVENTORY_PROVIDER_CONFIG_FILENAME'] = data_config_filename + task = worker.InventoryTask() + assert task.config