runner = <click.testing.CliRunner object at 0x7fb65f97a550>
def test_cli(runner):
result = runner.invoke(cli)
> assert result.output == TEST_CLI
E AssertionError: assert 'Usage: cli [... ship (boat)\n' == 'Usage: cli [O...ages ships.\n'
E Skipping 116 identical leading characters in diff, use -v to show
E - ine (bomb)
E - ship (boat)
E + ine (bomb) Manages mines.
E + ship (boat) Manages ships.
tests/test_naval.py:88: AssertionError
________________________________ test_ship_help ________________________________
runner = <click.testing.CliRunner object at 0x7fb65f97b110>
def test_ship_help(runner):
for cmd in ['ship', 'boat']:
result = runner.invoke(cli, [cmd])
> assert result.output == TEST_SHIP_HELP.format(cmd=cmd)
E AssertionError: assert 'Usage: cli s...shoot (fire)\n' == 'Usage: cli sh...ire to X,Y.\n'
E Skipping 134 identical leading characters in diff, use -v to show
E - ,navigate)
E - new (add,build,create)
E - shoot (fire)
E + ,navigate) Moves SHIP to the new location X,Y.
E + new (add,build,create) Creates a new ship.
E + shoot (fire) Makes SHIP fire to X,Y.