Skip to content

Commit 576b4fd

Browse files
committed
Update expected test output for PathPlus.dump_json
1 parent 2a6ebee commit 576b4fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_paths.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def test_dump_json(tmpdir):
565565

566566
tmp_file.dump_json({"key": "value", "int": 1234, "float": 12.34})
567567

568-
assert tmp_file.read_text() == '{"key": "value", "int": 1234, "float": 12.34}'
568+
assert tmp_file.read_text() == '{"key": "value", "int": 1234, "float": 12.34}\n'
569569

570570
tmp_file.dump_json({"key": "value", "int": 1234, "float": 12.34}, indent=2)
571571

@@ -574,7 +574,8 @@ def test_dump_json(tmpdir):
574574
"key": "value",
575575
"int": 1234,
576576
"float": 12.34
577-
}""")
577+
}
578+
""")
578579

579580

580581
def test_load_json(tmpdir):

0 commit comments

Comments
 (0)