Skip to content

Commit 9d52e26

Browse files
skshetryefiop
authored andcommittedJul 3, 2022
Apply suggestions from code review
1 parent 1c563a4 commit 9d52e26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tests/test_odb.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_exists(memfs):
5757
def test_exists_prefix(memfs):
5858
odb = ObjectDB(memfs, "/odb")
5959
with pytest.raises(KeyError):
60-
assert odb.exists_prefix("12")
60+
assert odb.exists_prefix("123")
6161

6262
odb.add_bytes("123456", b"content")
6363
assert odb.exists_prefix("123") == "123456"
@@ -68,8 +68,8 @@ def test_exists_prefix_ambiguous(memfs):
6868
odb.add_bytes("123456", b"content")
6969
odb.add_bytes("123450", b"content")
7070
with pytest.raises(ValueError) as exc:
71-
assert odb.exists_prefix("12")
72-
assert exc.value.args == ("12", ["123450", "123456"])
71+
assert odb.exists_prefix("123")
72+
assert exc.value.args == ("123", ["123450", "123456"])
7373

7474

7575
def test_move(memfs):

0 commit comments

Comments
 (0)
Please sign in to comment.