diff --git a/datacube/drivers/postgres/_connections.py b/datacube/drivers/postgres/_connections.py index f8f3503a7..f56cfbe1b 100755 --- a/datacube/drivers/postgres/_connections.py +++ b/datacube/drivers/postgres/_connections.py @@ -172,13 +172,13 @@ def close(self): def _expand_app_name(cls, application_name): """ >>> PostgresDb._expand_app_name(None) #doctest: +ELLIPSIS - 'agdc-...' + 'odc-...' >>> PostgresDb._expand_app_name('') #doctest: +ELLIPSIS - 'agdc-...' + 'odc-...' >>> PostgresDb._expand_app_name('cli') #doctest: +ELLIPSIS - 'cli agdc-...' + 'cli odc-...' >>> PostgresDb._expand_app_name('a b.c/d') - 'a-b-c-d agdc-...' + 'a-b-c-d odc-...' >>> PostgresDb._expand_app_name(5) Traceback (most recent call last): ... diff --git a/tests/test_driver.py b/tests/test_driver.py index 7f89aecf5..91f3f5d2a 100644 --- a/tests/test_driver.py +++ b/tests/test_driver.py @@ -54,7 +54,7 @@ def test_index_drivers(): def test_default_injection(): cache = IndexDriverCache('datacube.plugins.index-no-such-prefix') - assert cache.drivers() == ['default', 'postgres'] + assert cache.drivers() == ['default', 'postgres', 'legacy'] def test_netcdf_driver_import():