aboutsummaryrefslogtreecommitdiff
path: root/src/vgstash/test_vgstash_cli.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vgstash/test_vgstash_cli.py39
1 files changed, 21 insertions, 18 deletions
diff --git a/src/vgstash/test_vgstash_cli.py b/src/vgstash/test_vgstash_cli.py
index d0def8b..7306a7d 100644
--- a/src/vgstash/test_vgstash_cli.py
+++ b/src/vgstash/test_vgstash_cli.py
@@ -83,49 +83,52 @@ def test_list_filter():
))
def test_list_pretty():
+ print()
runner = CliRunner()
result = runner.invoke(vgstash_cli.cli, ['list', '-w', '80'])
if verbose:
print(result.output)
assert result.exit_code == 0
assert result.output == '\n'.join((
- ' ID | Title | System | Own | Status ',
+ ' ID | Title | System | Own | Progress ',
'--------------------------------------------------------------------------------',
- ' 3 | Sonic the Hedgehog 2 | Genesis | | C',
- ' 4 | Vectorman | Genesis | | C',
- ' 5 | Vectorman 2 | Genesis | P | B ',
- ' 1 | Super Mario Bros. | NES | P | B ',
- ' 2 | The Legend of Zelda | NES | D | B \n'
+ ' 3 | Sonic the Hedgehog 2 | Genesis | | B',
+ ' 4 | Vectorman | Genesis | | B',
+ ' 5 | Vectorman 2 | Genesis | P | P ',
+ ' 1 | Super Mario Bros. | NES | P | P ',
+ ' 2 | The Legend of Zelda | NES | D | P \n',
))
def test_list_pretty_smaller():
+ print()
runner = CliRunner()
result = runner.invoke(vgstash_cli.cli, ['list', '-w', '60'])
if verbose:
print(result.output)
assert result.exit_code == 0
assert result.output == '\n'.join((
- ' ID | Title | System | Own | Status ',
+ ' ID | Title | System | Own | Progress ',
'------------------------------------------------------------',
- ' 3 | Sonic the Hedgehog 2 | Genesis | | C',
- ' 4 | Vectorman | Genesis | | C',
- ' 5 | Vectorman 2 | Genesis | P | B ',
- ' 1 | Super Mario Bros. | NES | P | B ',
- ' 2 | The Legend of Zelda | NES | D | B \n'
+ ' 3 | Sonic the Hedgehog 2 | Genesis | | B',
+ ' 4 | Vectorman | Genesis | | B',
+ ' 5 | Vectorman 2 | Genesis | P | P ',
+ ' 1 | Super Mario Bros. | NES | P | P ',
+ ' 2 | The Legend of Zelda | NES | D | P \n'
))
def test_list_pretty_tiny():
+ print()
runner = CliRunner()
result = runner.invoke(vgstash_cli.cli, ['list', '-w', '50'])
if verbose:
print(result.output)
assert result.exit_code == 0
assert result.output == '\n'.join((
- ' ID | Title | System | Own | Status ',
+ ' ID | Title | System | Own | Progress ',
'--------------------------------------------------',
- ' 3 | Sonic the Hedge | Genesis | | C',
- ' 4 | Vectorman | Genesis | | C',
- ' 5 | Vectorman 2 | Genesis | P | B ',
- ' 1 | Super Mario Bro | NES | P | B ',
- ' 2 | The Legend of Z | NES | D | B \n'
+ ' 3 | Sonic the Hedg | Genesis | | B',
+ ' 4 | Vectorman | Genesis | | B',
+ ' 5 | Vectorman 2 | Genesis | P | P ',
+ ' 1 | Super Mario Br | NES | P | P ',
+ ' 2 | The Legend of | NES | D | P \n'
))