From 771a6b5ca146c2c9af09c69a433155359fe7a604 Mon Sep 17 00:00:00 2001 From: gkodosis Date: Fri, 3 Jul 2020 16:43:03 +0300 Subject: [PATCH] Remove test for get_new_command --- tests/rules/test_goenv_no_such_command.py | 10 ---------- tests/rules/test_nodenv_no_such_command.py | 10 ---------- tests/rules/test_pyenv_no_such_command.py | 10 ---------- tests/rules/test_rbenv_no_such_command.py | 10 ---------- 4 files changed, 40 deletions(-) diff --git a/tests/rules/test_goenv_no_such_command.py b/tests/rules/test_goenv_no_such_command.py index 64c52006..9efba076 100644 --- a/tests/rules/test_goenv_no_such_command.py +++ b/tests/rules/test_goenv_no_such_command.py @@ -25,13 +25,3 @@ def test_match(script, goenv_cmd, output): ]) def test_not_match(script, output): assert not match(Command(script, output=output)) - - -@pytest.mark.parametrize('script, goenv_cmd, result', [ - ('goenv globe', 'globe', 'goenv global'), - ('goenv intall 1.4.0', 'intall', 'goenv install 1.4.0'), - ('goenv list', 'list', 'goenv install --list'), - ('goenv remove 1.4.0', 'remove', 'goenv uninstall 1.4.0'), -]) -def test_get_new_command(script, goenv_cmd, output, result): - assert result in get_new_command(Command(script, output)) diff --git a/tests/rules/test_nodenv_no_such_command.py b/tests/rules/test_nodenv_no_such_command.py index 7d95d925..2a9d1287 100644 --- a/tests/rules/test_nodenv_no_such_command.py +++ b/tests/rules/test_nodenv_no_such_command.py @@ -25,13 +25,3 @@ def test_match(script, nodenv_cmd, output): ]) def test_not_match(script, output): assert not match(Command(script, output=output)) - - -@pytest.mark.parametrize('script, nodenv_cmd, result', [ - ('nodenv globe', 'globe', 'nodenv global'), - ('nodenv intall 3.8.0', 'intall', 'nodenv install 3.8.0'), - ('nodenv list', 'list', 'nodenv install --list'), - ('nodenv remove 3.8.0', 'remove', 'nodenv uninstall 3.8.0'), -]) -def test_get_new_command(script, nodenv_cmd, output, result): - assert result in get_new_command(Command(script, output)) diff --git a/tests/rules/test_pyenv_no_such_command.py b/tests/rules/test_pyenv_no_such_command.py index 8d73a5ca..d63b8269 100644 --- a/tests/rules/test_pyenv_no_such_command.py +++ b/tests/rules/test_pyenv_no_such_command.py @@ -25,13 +25,3 @@ def test_match(script, pyenv_cmd, output): ]) def test_not_match(script, output): assert not match(Command(script, output=output)) - - -@pytest.mark.parametrize('script, pyenv_cmd, result', [ - ('pyenv globe', 'globe', 'pyenv global'), - ('pyenv intall 3.8.0', 'intall', 'pyenv install 3.8.0'), - ('pyenv list', 'list', 'pyenv install --list'), - ('pyenv remove 3.8.0', 'remove', 'pyenv uninstall 3.8.0'), -]) -def test_get_new_command(script, pyenv_cmd, output, result): - assert result in get_new_command(Command(script, output)) diff --git a/tests/rules/test_rbenv_no_such_command.py b/tests/rules/test_rbenv_no_such_command.py index 05685380..9f0aadf2 100644 --- a/tests/rules/test_rbenv_no_such_command.py +++ b/tests/rules/test_rbenv_no_such_command.py @@ -25,13 +25,3 @@ def test_match(script, rbenv_cmd, output): ]) def test_not_match(script, output): assert not match(Command(script, output=output)) - - -@pytest.mark.parametrize('script, rbenv_cmd, result', [ - ('rbenv globe', 'globe', 'rbenv global'), - ('rbenv intall 3.8.0', 'intall', 'rbenv install 3.8.0'), - ('rbenv list', 'list', 'rbenv install --list'), - ('rbenv remove 3.8.0', 'remove', 'rbenv uninstall 3.8.0'), -]) -def test_get_new_command(script, rbenv_cmd, output, result): - assert result in get_new_command(Command(script, output))