Skip to content

Commit

Permalink
Improve complex test
Browse files Browse the repository at this point in the history
  • Loading branch information
djmattyg007 committed Oct 16, 2021
1 parent b136a9f commit b1349e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_complex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from cuddle import dumps, load
from cuddle import dumps, load, loads


fixtures_path = Path(__file__).parent
Expand All @@ -13,4 +13,9 @@ def test_from_file():
doc = load(before_formatting_file)
formatted_doc = after_formatting_file.read_text()

assert dumps(doc) == formatted_doc
dumped_doc = dumps(doc)
assert dumped_doc == formatted_doc

reloaded_doc = loads(dumped_doc)
redumped_doc = dumps(reloaded_doc)
assert redumped_doc == dumped_doc

0 comments on commit b1349e6

Please sign in to comment.