Skip to content

Commit

Permalink
Basic test for setting signing_metadata_url_base
Browse files Browse the repository at this point in the history
Check that this config option actually gets loaded; rename previous test
to avoid name collision and better describe what it does.
  • Loading branch information
chenghlee committed May 26, 2021
1 parent 731fc44 commit 82ade43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/base/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def test_old_channel_alias(self):
]

def test_signing_metadata_url_base(self):
SIGNING_URL_BASE = "https://conda.example.com/pkgs"
string = f"signing_metadata_url_base: {SIGNING_URL_BASE}"
reset_context()
rd = odict(testdata=YamlRawParameter.make_raw_parameters('testdata', yaml_round_trip_load(string)))
context._set_raw_data(rd)
assert context.signing_metadata_url_base == SIGNING_URL_BASE

def test_signing_metadata_url_base_empty_default_channels(self):
string = dals("""
default_channels: []
""")
Expand Down

0 comments on commit 82ade43

Please sign in to comment.