We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ea992c commit 83072efCopy full SHA for 83072ef
tests/test_optimizations.py
@@ -33,10 +33,12 @@ def test_remove_docstrings(opts):
33
34
def test_single_line_mode(opts):
35
opts["single_line_mode"].set(True)
36
+ opts["remove_blank_lines"].set(True)
37
text = "line1\nline2\nline3"
38
result = apply_optimizations(opts, text)
39
assert "⏎" in result
- assert "\n" not in result
40
+ assert "\n" not in result.rstrip("\n")
41
+ assert result.endswith("\n")
42
43
44
def test_unicode_shortcuts(opts):
@@ -58,4 +60,4 @@ def test_boolean_replacement(opts):
58
60
opts["replace_booleans"].set(True)
59
61
text = "True and False or None"
62
- assert result == "1 and 0 or ~"
63
+ assert result == "1 and 0 or ~"
0 commit comments