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 ca9dd25 commit 75a4876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datacube/cfg/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(self,
self._allow_envvar_overrides: bool = allow_env_overrides
self._normalised: dict[str, Any] = {}

if name == "user" and "default_environment" in raw:
if name == "user" and "default_environment" in raw:
warnings.warn("The 'default_environment' setting in the 'user' section is no longer supported - "
"please refer to the documentation for more information")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_invalid_env():


def test_oldstyle_cfg():
from datacube.cfg.api import ODCConfig, ConfigException
from datacube.cfg.api import ODCConfig
with pytest.warns(UserWarning, match=r'default_environment.*no longer supported'):
cfg = ODCConfig(text="""
default:
Expand Down

0 comments on commit 75a4876

Please sign in to comment.