1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00
thefuck/tests/rules
0xphk 06cb50b1e3
#1308: Add updatedb (mlocate) pattern to sudo rule
* added updatedb(mlocate) to sudo rules

* Add test

Co-authored-by: phk <phk@terminal21.de>
Co-authored-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
2022-06-05 22:58:31 +02:00
..
__init__.py refact(shells): add and_ method to assemble expressions involving AND 2015-05-16 11:52:50 -03:00
test_adb_unknown_command.py Add rule for ADB unknown commands (#765) 2018-01-05 16:20:03 -05:00
test_ag_literal.py Comply to new flake8 3.6 (#853) 2018-10-30 20:56:55 +01:00
test_apt_get_search.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_apt_get.py #786: Fix tests 2018-02-23 21:15:05 +01:00
test_apt_invalid_operation.py Apt-get help is now much more like apt (#1031) 2020-01-05 23:53:09 +01:00
test_apt_list_upgradable.py Only consider raw command in output (#931) 2019-08-19 21:39:14 +02:00
test_apt_upgrade.py Add apt_upgrade rule (#761) 2018-01-03 19:01:09 +01:00
test_aws_cli.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_az_cli.py Added a rule to match az binary sub-command misses (#834) 2018-08-16 00:22:24 +02:00
test_brew_cask_dependency.py #N/A: Add brew_cask_dependency rule 2017-10-15 16:11:08 +02:00
test_brew_install.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_brew_link.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_brew_reinstall.py Add brew_reinstall rule (#816) 2018-05-22 19:25:05 +02:00
test_brew_uninstall.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_brew_unknown_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_brew_update_formula.py #710: Fix tests 2017-10-15 16:39:40 +02:00
test_cargo_no_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_cat_dir.py Stop parsing language-variable cat output to make cat_dir more reliable. (#827) 2018-07-11 23:47:06 +02:00
test_cd_correction.py Squashed commit of the following: 2018-02-23 20:45:36 +01:00
test_cd_cs.py #N/A: Add cd_cs rule (#1167) 2021-03-22 20:55:45 +01:00
test_cd_mkdir.py Squashed commit of the following: 2018-02-23 20:45:36 +01:00
test_cd_parent.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_chmod_x.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_choco_install.py Add choco_install rule (#998) 2019-11-07 01:10:00 +01:00
test_composer_not_command.py #1123: Update composer_not_command rule (#1135) 2021-06-30 23:10:06 +02:00
test_conda_mistype.py #N/A: Add conda rule (#1138) 2021-02-08 13:04:59 +01:00
test_cp_create_destination.py #N/A: Add a new rule to create directory on cp or mv 2020-03-01 13:04:53 -06:00
test_cp_omitting_directory.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_dirty_untar.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_dirty_unzip.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_django_south_ghost.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_django_south_merge.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_dnf_no_such_command.py Tests! Also fixed some bytes-string issues 2017-10-07 12:59:21 +02:00
test_docker_image_being_used_by_container.py Docker remove container before remove image (#928) 2019-07-10 20:34:20 +02:00
test_docker_login.py Docker login (#894) 2019-04-04 00:01:14 +02:00
test_docker_not_command.py Update docker commands. (#940) 2019-08-21 20:35:55 +02:00
test_dry.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_fab_command_not_found.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_fix_alt_space.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_fix_file.py #N/A: Refactor for better readability (#1094) 2020-06-14 16:20:40 +02:00
test_gem_unknown_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_add_force.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_add.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_bisect_usage.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_branch_0flag.py #942: Improve git_branch_0flag rule - with a new name 2021-07-13 15:36:11 +02:00
test_git_branch_delete_checked_out.py #N/A: Add new git_branch_delete_checked_out rule (#985) 2019-10-23 00:30:17 +02:00
test_git_branch_delete.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_branch_exists.py #762: handle single quotes in git_branch_exists 2018-01-05 19:25:08 -02:00
test_git_branch_list.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_checkout.py Allow multiple returns from git_checkout (#1022) 2020-01-13 23:28:20 +01:00
test_git_clone_git_clone.py Add rule to remove a doubled-up "git clone" in a git clone command. (#1106) 2020-07-16 23:34:22 +02:00
test_git_commit_add.py #1131: Improve git_commit_add rule 2021-07-08 21:43:35 +02:00
test_git_commit_amend.py Offer git commit --amend after previous git commit (#764) 2018-01-05 16:24:43 -05:00
test_git_commit_reset.py #N/A: Add rule for git commit that reverts previous commit (#886) 2019-02-25 23:24:16 +01:00
test_git_diff_no_index.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_diff_staged.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_fix_stash.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_flag_after_filename.py git_flag_after_filename: Handle new error message 2017-11-01 09:42:52 -04:00
test_git_help_aliased.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_hook_bypass.py #1096: Rule: Bypass failed git hook (#1097) 2020-07-16 23:32:29 +02:00
test_git_lfs_mistype.py add git-lfs support (#1056) 2020-06-11 00:20:37 +02:00
test_git_main_master.py #1184: Improve + fix git_main_master rule 2021-07-09 16:13:25 +02:00
test_git_merge_unrelated.py #N/A: Fix tests with py.test 4 2018-11-21 19:43:01 +01:00
test_git_merge.py #N/A: Fix tests with py.test 4 2018-11-21 19:43:01 +01:00
test_git_not_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_pull_clone.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_pull_uncommitted_changes.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_pull_unstaged_changes.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_pull.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_push_different_branch_names.py #652: Add new git_push_different_branch_names rule 2017-10-15 13:30:29 -02:00
test_git_push_force.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_push_pull.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_push_without_commits.py #618: Fix git_push_without_commits rule 2021-07-29 22:11:34 +02:00
test_git_push.py git_push: Handle command containing force argument (#818) 2018-07-10 00:48:08 +02:00
test_git_rebase_merge_dir.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_rebase_no_changes.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_remote_delete.py #701: Replace the first single occurrence of delete 2017-10-08 18:55:44 -03:00
test_git_remote_seturl_add.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_rm_local_modifications.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_rm_recursive.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_rm_staged.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_stash_pop.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_stash.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_tag_force.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_git_two_dashes.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_go_run.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_go_unknown_command.py #1117: Mock Popen in go_unknown_command test 2021-02-22 22:54:45 +01:00
test_gradle_not_task.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_gradle_wrapper.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_grep_arguments_order.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_grep_recursive.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_grunt_task_not_found.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_gulp_not_task.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_has_exists_script.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_heroku_multiple_apps.py #728: Add heroku_multiple_apps rule (#729) 2017-11-09 18:42:23 -05:00
test_heroku_not_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_history.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_hostscli.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_ifconfig_device_not_found.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_java.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_javac.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_lein_not_task.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_ln_no_hard_link.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_ln_s_order.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_long_form_help.py Squashed commit of the following: 2018-05-22 19:01:51 +02:00
test_ls_all.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_ls_lah.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_man_no_space.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_man.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_mercurial.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_missing_space_before_subcommand.py #579: Ignore commands of len 1 in missing_space_before_subcommand 2021-08-01 22:24:29 +02:00
test_mkdir_p.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_mvn_no_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_mvn_unknown_lifecycle_phase.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_nixos_cmd_not_found.py support nixos command-not-found, closes #912 (#922) 2019-06-26 20:01:02 +02:00
test_no_command.py #N/A: Improve support to Windows in no_command rule (#918) 2019-05-27 18:23:06 +02:00
test_no_such_file.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_npm_missing_script.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_npm_run_script.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_npm_wrong_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_omnienv_no_such_command.py #/N/A: Extend pyenv rule to include goenv, nodenv and rbenv (#1100) 2021-02-11 12:48:20 +01:00
test_open.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_pacman_invalid_option.py #960: Improve pacman_invalid_option rule (#1072) 2020-04-06 21:46:40 +02:00
test_pacman_not_found.py #1279: Add pikaur AUR manager to Arch Linux's commands 2022-03-27 22:06:40 +02:00
test_pacman.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_path_from_history.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_php_s.py #702: fix minor issues with php_s rule 2017-10-15 17:18:21 -02:00
test_pip_install.py Add rule for pip_install permission fix (#895) 2019-04-24 18:15:38 +02:00
test_pip_unknown_command.py #1047: Fix pip_unknown_command by using a less restrictive regex 2020-03-01 10:40:49 -06:00
test_port_already_in_use.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_prove_recursively.py #N/A: Add prove_recursively rule 2017-10-15 15:51:09 +02:00
test_python_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_python_execute.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_python_module_error.py #1149: Add python_module_error rule (#1151) 2021-01-19 22:37:05 +01:00
test_quotation_marks.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_rails_migrations_pending.py #1210: Add rule 'rails_migrations_pending' 2021-07-06 12:52:54 +02:00
test_react_native_command_unrecognized.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_remove_shell_prompt_literal.py fix: Add missing comma 2022-01-30 22:34:38 +01:00
test_remove_trailing_cedilla.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_rm_dir.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_rm_root.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_scm_correction.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_sed_unterminated_s.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_sl_ls.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_ssh_known_host.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_sudo_command_from_user_path.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_sudo.py #1308: Add updatedb (mlocate) pattern to sudo rule 2022-06-05 22:58:31 +02:00
test_switch_lang.py Add support for switch_lang for Korean. (#981) 2019-10-19 15:03:21 +02:00
test_systemctl.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_terraform_init.py Added rules to run terraform init before terraform plan or apply (#924) 2019-06-26 20:02:01 +02:00
test_tmux.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_touch.py #N/A: Fix tests with py.test 4 2018-11-21 19:43:01 +01:00
test_tsuru_login.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_tsuru_not_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_unknown_command.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_unsudo.py Added a rule to delete sudo for pacaur. (#787) 2018-02-22 22:14:02 +01:00
test_vagrant_up.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_whois.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_workon_doesnt_exists.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_wrong_hyphen_before_subcommand.py #977: Add wrong_hyphen_before_subcommand rule 2021-08-07 23:26:36 +02:00
test_yarn_alias.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_yarn_command_not_found.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_yarn_command_replaced.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_yarn_help.py #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
test_yum_invalid_operation.py Support for yum invalid commands. (#968) 2019-10-19 15:05:22 +02:00