Skip to content

Commit

Permalink
fix: trailing whitespace in test file
Browse files Browse the repository at this point in the history
The `debug resolve` had an extra row included in its table, adding extra
whitespace. Also, remove a list that is discarded immediately.
  • Loading branch information
neersighted committed Nov 14, 2021
1 parent 7cb5ea0 commit f7bbd54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions poetry/console/commands/debug/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def handle(self) -> Optional[int]:

return 0

table = self.table([], style="compact")
table = self.table(style="compact")
table.style.set_vertical_border_chars("", " ")
rows = []

Expand All @@ -133,7 +133,6 @@ def handle(self) -> Optional[int]:
row = [
"<c1>{}</c1>".format(pkg.complete_name),
"<b>{}</b>".format(pkg.version),
"",
]

if not pkg.marker.is_any():
Expand Down
8 changes: 4 additions & 4 deletions tests/console/commands/debug/test_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def test_debug_resolve_gives_resolution_results(tester):
Resolution results:
msgpack-python 0.5.3
cachy 0.2.0
msgpack-python 0.5.3
cachy 0.2.0
"""

assert expected == tester.io.fetch_output()
Expand Down Expand Up @@ -60,8 +60,8 @@ def test_debug_resolve_git_dependency(tester):
Resolution results:
pendulum 2.0.3
demo 0.1.2
pendulum 2.0.3
demo 0.1.2
"""

assert expected == tester.io.fetch_output()

0 comments on commit f7bbd54

Please sign in to comment.