Skip to content

Commit

Permalink
Update a couple of ancient tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Oct 25, 2023
1 parent 7113206 commit cae9cec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions datacube/drivers/postgres/_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
...
Expand Down
2 changes: 1 addition & 1 deletion tests/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit cae9cec

Please sign in to comment.