Skip to content

Commit

Permalink
Fix test following black version change
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Oct 30, 2019
1 parent 13790fe commit 3022236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/elpy-black-fix-code-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@
(elpy-testcase ()
;; create pyproject.toml
(with-current-buffer (find-file-noselect "pyproject.toml")
(insert "[tool.black]\nline-length = 10\nexclude = '''\n'''\n")
(insert "[tool.black]\nline-length = 20\nexclude = '''\n'''\n")
(save-buffer))
(set-buffer-string-with-point
"_|_print(1, 2, 3, 4, 5, 6, 7)"
"x, y, z, a, b, c = 1, 2, 3, 4, 5, 6"
)
(elpy-black-fix-code)
(delete-file "pyproject.toml")
(should
(buffer-be
"_|_print("
Expand All @@ -130,5 +131,4 @@
" 5,"
" 6,"
")"))
(delete-file "pyproject.toml")
)))

0 comments on commit 3022236

Please sign in to comment.