Skip to content

Commit 49fd725

Browse files
committed
x
1 parent ea908d3 commit 49fd725

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_data.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from xulbux import Data
22

3-
43
# ! DON'T CHANGE THIS DATA !
54
d_comments = {
65
"key1": [
@@ -29,7 +28,9 @@
2928

3029

3130
def test_remove_comments():
32-
assert Data.remove_comments(d_comments, comment_sep="__") == {
31+
assert Data.remove_comments(
32+
d_comments, comment_sep="__"
33+
) == {
3334
"key1": ["value1", "value2", "val__ue3"],
3435
"key3": None,
3536
}
@@ -46,6 +47,6 @@ def test_path_id():
4647
assert id2 == "1>012"
4748
assert Data.get_value_by_path_id(d1_path_id, id1) == "bananas"
4849
assert Data.get_value_by_path_id(d1_path_id, id2) == "celery"
49-
assert Data.set_value_by_path_id(d2_path_id, ["1>001::NEW1", "1>012::NEW2"]) == {
50+
assert Data.set_value_by_path_id(d2_path_id, {id1: "NEW1", id2: "NEW2"}) == {
5051
"school": {"material": ["pencil", "NEW1", "rubber"], "subjects": ["math", "science", "NEW2"]}
5152
}

0 commit comments

Comments
 (0)