MCPcopy Create free account
hub / github.com/conda/constructor / test_rdi_invalid_package

Function test_rdi_invalid_package

tests/test_briefcase.py:157–165  ·  view source on GitHub ↗
(rdi)

Source from the content-addressed store, hash-verified

155
156@pytest.mark.parametrize("rdi", ["org.", "org.hello.", "org.hello.-"])
157def test_rdi_invalid_package(rdi):
158 with pytest.raises(
159 ValueError,
160 match=(
161 f"Last component of reverse_domain_identifier '{rdi}' "
162 f"contains no alphanumeric characters"
163 ),
164 ):
165 get_bundle_app_name({"reverse_domain_identifier": rdi}, "ignored")
166
167
168@pytest.mark.parametrize("name", ["", " ", "!", "-", "---"])

Callers

nothing calls this directly

Calls 1

get_bundle_app_nameFunction · 0.90

Tested by

no test coverage detected