Skip to content

Commit

Permalink
fixed formatter param
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Nov 11, 2024
1 parent 6945a48 commit 2d04db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/data/test_sync_up_to_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def test_sync_up_to_date(sync_file):
If this test fails, run `nox -s generate_sync` to update the sync files.
"""
path = sync_file.output_path
new_render = sync_file.render(with_black=True, save_to_disk=False)
new_render = sync_file.render(with_formatter=True, save_to_disk=False)
found_render = CrossSyncOutputFile(
output_path="", ast_tree=ast.parse(open(path).read()), header=sync_file.header
).render(with_black=True, save_to_disk=False)
).render(with_formatter=True, save_to_disk=False)
# compare by content
diff = unified_diff(found_render.splitlines(), new_render.splitlines(), lineterm="")
diff_str = "\n".join(diff)
Expand Down

0 comments on commit 2d04db7

Please sign in to comment.