Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Oct 18, 2024
1 parent 1ca7486 commit fff2d2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_trailing_newline_plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
def test_trailing_newline(filetab, tmp_path):
filetab.path = tmp_path / "foo.py"

filetab.save()
assert (tmp_path / "foo.py").read_text() == "\n"

filetab.textwidget.insert("1.0", "hello")
assert filetab.textwidget.get("1.0", "end - 1 char") == "hello"

Expand Down

0 comments on commit fff2d2a

Please sign in to comment.