We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9182c0a commit 1819baaCopy full SHA for 1819baa
2 files changed
tests/repo/base.py
@@ -120,6 +120,11 @@ def test_getitem_base(self, repo):
120
with pytest.raises(KeyError):
121
_ = repo[obj]
122
123
+ # invalid key values
124
+ for obj in ("<cat/pkg", "maintainer is"):
125
+ with pytest.raises(ValueError):
126
+ repo[obj]
127
+
128
# invalid key types
129
for obj in (object(), None):
130
with pytest.raises(TypeError):
tests/repo/test_set.py
@@ -171,6 +171,11 @@ def test_getitem(self, make_fake_repo):
171
assert s[Dep("=cat/pkg-1::r2")] == pkg1
172
assert s["cat/pkg-2"] == pkg2
173
174
175
176
177
+ s[obj]
178
179
180
181
0 commit comments