Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Call NameLoad Call NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A git os.path expanduser mock patch MagicMock jig.tests.testcase CommandTestCase result_with_hint jig.commands sticky jig.exc ForcedExit JigUserDirectoryError GitConfigError InitTemplateDirAlreadySet GitTemplatesMissing GitHomeTemplatesExists jig.commands.hints INIT_TEMPLATE_DIR_ALREADY_SET GIT_TEMPLATES_MISSING GIT_HOME_TEMPLATES_EXISTS TestStickyCommand N/A CommandTestCase N/A N/A 
    Test the sticky command.

     N/A command N/A sticky Command setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestStickyCommand self setUp N/A N/A self mocks N/A create_auto_init_templates set_templates_directory N/A MagicMock N/A MagicMock N/A N/A self _patches N/A N/A _start_patches N/A N/A self N/A N/A N/A N/A N/A len N/A self _patches 0 N/A N/A function mock_function N/A N/A N/A self mocks items N/A N/A patched N/A patch N/A N/A jig.commands.sticky.{0} format function new mock_function N/A N/A N/A patched start N/A N/A N/A N/A self _patches append patched N/A run_command N/A N/A self N/A args kwargs N/A N/A 
        Make sure that our patches have started before we run a command.
         N/A N/A N/A self _start_patches N/A N/A N/A N/A super TestStickyCommand self run_command args kwargs N/A tearDown N/A N/A self N/A N/A N/A patches N/A self _patches N/A N/A N/A N/A patches stop N/A test_command_succeeds N/A N/A self N/A N/A N/A 
        Successful command returns a message that informs the user.
         N/A N/A N/A self run_command N/A N/A N/A self assertResults Jig has been setup to run everytime you clone. N/A self output N/A test_fails_create_auto_init_templates N/A N/A self N/A N/A N/A 
        A failure to auto-init is formatted correctly.
         N/A N/A N/A N/A self mocks N/A create_auto_init_templates side_effect N/A JigUserDirectoryError Error N/A N/A N/A self assertRaises ForcedExit N/A N/A N/A N/A self run_command N/A N/A N/A self assertResults Error N/A self error N/A test_templates_missing N/A N/A self N/A N/A N/A 
        No Git templates can be found.
         N/A N/A N/A N/A self mocks N/A create_auto_init_templates side_effect N/A GitTemplatesMissing N/A N/A N/A self assertRaises ForcedExit N/A N/A N/A N/A self run_command N/A N/A N/A self assertResults N/A result_with_hint Unable to find templates. GIT_TEMPLATES_MISSING N/A self error N/A test_home_templates_exist N/A N/A self N/A N/A N/A 
        A templates directory already exists in ~/.jig/git
         N/A N/A N/A N/A self mocks N/A create_auto_init_templates side_effect N/A GitHomeTemplatesExists ~/.jig/git/templates N/A N/A N/A self assertRaises ForcedExit N/A N/A N/A N/A self run_command N/A N/A N/A self assertResults N/A result_with_hint ~/.jig/git/templates already exists GIT_HOME_TEMPLATES_EXISTS N/A self error N/A test_init_templatesdir_already_set N/A N/A self N/A N/A N/A 
        Git is already configured with a init.templatedir
         N/A N/A N/A N/A self mocks N/A set_templates_directory side_effect N/A InitTemplateDirAlreadySet /tmp/templates N/A N/A N/A self assertRaises ForcedExit N/A N/A N/A N/A self run_command N/A N/A N/A self assertResults N/A result_with_hint Git configuration for init.templatedir is /tmp/templates INIT_TEMPLATE_DIR_ALREADY_SET N/A self error N/A test_git_config_error N/A N/A self N/A N/A N/A 
        A failure to read or write to the Git config.
         N/A N/A N/A N/A self mocks N/A set_templates_directory side_effect N/A GitConfigError N/A N/A N/A git exc GitCommandError git config 1 error N/A N/A N/A self assertRaises ForcedExit N/A N/A N/A N/A self run_command N/A N/A N/A self assertResults Problem when running git config: error N/A self error N/A N/A