Module ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg body Raise AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Str keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list
N/A click.testing CliRunner N/A git N/A pytest os.path abspath dirname turnstile.manager_subcommands.remove cmd N/A TEST_FOLDER N/A dirname N/A abspath __file__ FakeNonExistingPath N/A object N/A __init__ N/A N/A self N/A args N/A N/A N/A exists N/A N/A self N/A N/A N/A False N/A __div__ N/A N/A self other N/A N/A N/A self N/A __truediv__ N/A N/A self other N/A N/A N/A self N/A N/A FakeRepo N/A object N/A __init__ N/A N/A self dir N/A None N/A N/A N/A self working_dir TEST_FOLDER N/A N/A self git_dir .git N/A N/A fake_git N/A N/A monkeypatch N/A N/A N/A N/A N/A monkeypatch setattr git Repo FakeRepo N/A FakeRepo N/A N/A pytest fixture fake_no_git N/A N/A monkeypatch N/A N/A raiser N/A N/A N/A args N/A N/A N/A git InvalidGitRepositoryError N/A N/A N/A N/A monkeypatch setattr git Repo raiser N/A N/A N/A pytest fixture fake_path N/A N/A mocker N/A N/A N/A mock N/A N/A mocker patch pathlib.Path N/A mock N/A N/A pytest fixture fake_path_existence N/A N/A monkeypatch N/A N/A N/A mock2 N/A N/A monkeypatch setattr pathlib.Path FakeNonExistingPath N/A mock2 N/A N/A pytest fixture test_outside_git N/A N/A fake_no_git N/A N/A N/A runner N/A CliRunner N/A result N/A N/A runner invoke cmd N/A N/A This command must be executed inside a repository. N/A result output N/A N/A N/A result exit_code 1 N/A test_remove_hook N/A N/A fake_git fake_path N/A N/A N/A runner N/A CliRunner N/A result N/A N/A runner invoke cmd input y
y
 N/A N/A Removed Pre-Commit hook N/A result output N/A N/A Removed Commit-Msg hook N/A result output N/A N/A N/A result exit_code 0 N/A test_dont_remove N/A N/A fake_git fake_path N/A N/A N/A runner N/A CliRunner N/A result N/A N/A runner invoke cmd input n
n
 N/A N/A Kept Pre-Commit hook N/A result output N/A N/A Kept Commit-Msg hook N/A result output N/A N/A N/A result exit_code 0 N/A test_doesnt_exist N/A N/A fake_git fake_path_existence N/A N/A N/A N/A fake_path exists False N/A runner N/A CliRunner N/A result N/A N/A runner invoke cmd N/A -v input n
n
 N/A N/A Pre-Commit Hook doesn't exist N/A result output N/A N/A Commit-Msg Hook doesn't exist N/A result output N/A N/A N/A result exit_code 0 N/A