Skip to content

Commit 7702c4f

Browse files
committed
Test additional code paths in bytes2str
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <[email protected]>
1 parent 07150f9 commit 7702c4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_path_checks.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ def test_content_limit_respected_read() -> None:
234234

235235

236236
def test_bytes2str_in_dicts() -> None:
237-
d1 = {"foo": b"bar"}
237+
assert bytes2str_in_dicts({"foo": b"bar"}) == {"foo": "bar"}
238238

239-
d2 = bytes2str_in_dicts(d1)
239+
assert bytes2str_in_dicts({"foo": [b"bar"]}) == {"foo": ["bar"]}
240240

241-
assert d2 == {"foo": "bar"}
241+
assert bytes2str_in_dicts({"foo": {"foo2": b"bar"}}) == {"foo": {"foo2": "bar"}}

0 commit comments

Comments
 (0)