Skip to content

Commit 24dc793

Browse files
committed
Use the reformatter class for the second run in the reformatter class test.
1 parent ec31734 commit 24dc793

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def test_reformatter_class(
140140
assert not captured.err
141141

142142
# Calling a second time shouldn't change anything
143-
assert reformat_file(tmp_pathplus / "code.py", config) == 0
143+
r = Reformatter(tmp_pathplus / "code.py", config)
144+
assert r.run() == 0
145+
r.to_file()
144146

145147
advanced_file_regression.check_file(tmp_pathplus / "code.py")
146148

0 commit comments

Comments
 (0)