mirror of
https://github.com/nvbn/thefuck.git
synced 2025-06-19 06:46:07 +01:00
⚠️ Remove settings
param from rules match
, get_new_command
and side_effect
This commit is contained in:
README.md
tests
rules
test_apt_get.pytest_apt_get_search.pytest_brew_install.pytest_brew_unknown_command.pytest_brew_upgrade.pytest_cargo_no_command.pytest_cd_mkdir.pytest_cd_parent.pytest_composer_not_command.pytest_cp_omitting_directory.pytest_dirty_untar.pytest_dirty_unzip.pytest_django_south_ghost.pytest_django_south_merge.pytest_docker_not_command.pytest_dry.pytest_fix_alt_space.pytest_fix_file.pytest_git_add.pytest_git_branch_delete.pytest_git_branch_list.pytest_git_checkout.pytest_git_diff_staged.pytest_git_fix_stash.pytest_git_not_command.pytest_git_pull.pytest_git_pull_clone.pytest_git_push.pytest_git_push_force.pytest_git_push_pull.pytest_git_stash.pytest_go_run.pytest_grep_recursive.pytest_gulp_not_task.pytest_has_exists_script.pytest_heroku_not_command.pytest_history.pytest_java.pytest_javac.pytest_lein_not_task.pytest_ls_lah.pytest_man.pytest_man_no_space.pytest_mercurial.pytest_mkdir_p.pytest_mvn_no_command.pytest_mvn_unknown_lifecycle_phase.pytest_no_command.pytest_no_such_file.pytest_open.pytest_pacman.pytest_pacman_not_found.pytest_pip_unknown_command.pytest_python_command.pytest_python_execute.pytest_quotation_marks.pytest_rm_dir.pytest_rm_root.pytest_sed_unterminated_s.pytest_sl_ls.pytest_ssh_known_host.pytest_sudo.pytest_switch_lang.pytest_systemctl.pytest_tmux.pytest_tsuru_login.pytest_tsuru_not_command.pytest_unknown_command.pytest_vagrant_up.pytest_whois.py
specific
test_corrector.pytest_utils.pythefuck
corrector.pymain.py
rules
apt_get.pyapt_get_search.pybrew_install.pybrew_unknown_command.pybrew_upgrade.pycargo.pycargo_no_command.pycd_correction.pycd_mkdir.pycd_parent.pycomposer_not_command.pycp_omitting_directory.pycpp11.pydirty_untar.pydirty_unzip.pydjango_south_ghost.pydjango_south_merge.pydocker_not_command.pydry.pyfix_alt_space.pyfix_file.pygit_add.pygit_branch_delete.pygit_branch_list.pygit_checkout.pygit_diff_staged.pygit_fix_stash.pygit_not_command.pygit_pull.pygit_pull_clone.pygit_push.pygit_push_force.pygit_push_pull.pygit_stash.pygo_run.pygrep_recursive.pygulp_not_task.pyhas_exists_script.pyheroku_not_command.pyhistory.pyjava.pyjavac.pylein_not_task.pyls_lah.pyman.pyman_no_space.pymercurial.pymkdir_p.pymvn_no_command.pymvn_unknown_lifecycle_phase.pyno_command.pyno_such_file.pyopen.pypacman.pypacman_not_found.pypip_unknown_command.pypython_command.pypython_execute.pyquotation_marks.pyrm_dir.pyrm_root.pysed_unterminated_s.pysl_ls.pyssh_known_hosts.pysudo.pyswitch_lang.pysystemctl.pytest.py.pytmux.pytsuru_login.pytsuru_not_command.pyunknown_command.pyvagrant_up.pywhois.py
specific
utils.py@ -3,10 +3,10 @@ from tests.utils import Command
|
||||
|
||||
|
||||
def test_match():
|
||||
assert match(Command('temp.py', stderr='Permission denied'), None)
|
||||
assert not match(Command(), None)
|
||||
assert match(Command('temp.py', stderr='Permission denied'))
|
||||
assert not match(Command())
|
||||
|
||||
|
||||
def test_get_new_command():
|
||||
assert get_new_command(Command('./test_sudo.py'), None)\
|
||||
assert get_new_command(Command('./test_sudo.py'))\
|
||||
== 'python ./test_sudo.py'
|
||||
|
Reference in New Issue
Block a user