Skip to content

Commit

Permalink
lintage.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Nov 1, 2023
1 parent 75a4876 commit 4f16066
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/test_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,15 @@ def test_oldstyle_cfg():
from datacube.cfg.api import ODCConfig
with pytest.warns(UserWarning, match=r'default_environment.*no longer supported'):
cfg = ODCConfig(text="""
default:
index_driver: memory
env2:
index_driver: memory
env3:
index_driver: memory
user:
default_environment: env3
"""
)
default:
index_driver: memory
env2:
index_driver: memory
env3:
index_driver: memory
user:
default_environment: env3
""")
assert cfg[None]._name == 'default'


Expand Down

0 comments on commit 4f16066

Please sign in to comment.