1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

fix styling tests

This commit is contained in:
Gabriel Abramzon 2019-08-30 14:50:06 +03:00
parent 53704658b2
commit 90ae7b7baf

View File

@ -14,12 +14,13 @@ If the version you need is missing, try upgrading ruby-build:
@pytest.mark.parametrize('script, output', [ @pytest.mark.parametrize('script, output', [
('rbenv install 2.6.1', expected_output) ('rbenv install 2.6.1', expected_output)
]) ])
def test_match(script, output): def test_match(script, output):
assert match(Command(script, output)) assert match(Command(script, output))
@pytest.mark.parametrize('command, new_command', [ @pytest.mark.parametrize('command, new_command', [
(Command('rbenv install 2.6.1', expected_output), expected_actual_command)]) (Command('rbenv install 2.6.1', expected_output), expected_actual_command)
])
def test_get_new_command(command, new_command): def test_get_new_command(command, new_command):
assert get_new_command(command) == new_command assert get_new_command(command) == new_command