Module Expr Str Import alias ImportFrom alias Import alias Import alias ImportFrom alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Call NameLoad Expr Yield Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body With Call NameLoad NameLoad body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body With Call NameLoad NameLoad body With Call NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body With Call NameLoad NameLoad body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore ListComp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Call NameLoad Str attr Assign NameStore ListLoad BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Ensure the `run` method works N/A unittest contextlib contextmanager N/A logging N/A os path path N/A shovel N/A sys N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A io StringIO capture N/A N/A stream N/A stdout N/A N/A original N/A getattr sys stream N/A N/A setattr sys stream N/A StringIO N/A N/A N/A getattr sys stream N/A N/A setattr sys stream original N/A contextmanager logs N/A N/A N/A N/A N/A stream N/A StringIO N/A handler N/A N/A logging StreamHandler stream N/A N/A N/A N/A shovel logger addHandler handler N/A N/A stream N/A N/A N/A handler flush N/A N/A N/A N/A shovel logger removeHandler handler N/A contextmanager TestRun N/A N/A unittest TestCase N/A N/A Test our `run` method stdout N/A N/A self pth N/A args kwargs N/A N/A N/A path pth N/A N/A N/A capture out N/A N/A N/A N/A shovel run args kwargs N/A N/A N/A N/A line strip N/A line N/A N/A N/A N/A N/A N/A out getvalue strip split N/A stderr N/A N/A self pth N/A args kwargs N/A N/A N/A path pth N/A N/A N/A capture stderr out N/A N/A N/A N/A shovel run args kwargs N/A N/A N/A N/A line strip N/A line N/A N/A N/A N/A N/A N/A out getvalue strip split N/A logs N/A N/A self pth N/A args kwargs N/A N/A N/A path pth N/A N/A N/A logs out N/A N/A N/A N/A shovel run args kwargs N/A N/A N/A N/A line strip N/A line N/A N/A N/A N/A N/A N/A out getvalue strip split N/A test_basic N/A N/A self N/A N/A N/A We should be able to run a command N/A actual N/A N/A self stdout test/examples/run/basic bar N/A expected N/A Hello from bar! N/A N/A N/A self assertEqual actual expected N/A test_basic_help N/A N/A self N/A N/A N/A Can run a basic example N/A actual N/A N/A self stdout test/examples/run/basic help N/A expected N/A bar => Dummy function N/A N/A N/A self assertEqual actual expected N/A test_verbose N/A N/A self N/A N/A N/A Can be run in verbose mode N/A actual N/A N/A self logs test/examples/run/basic bar --verbose N/A actual N/A N/A N/A line replace N/A N/A os getcwd N/A line actual N/A expected_path N/A N/A N/A path /test/examples/run/basic/shovel.py normpath N/A expected N/A N/A Loading  expected_path Found task bar in shovel N/A N/A N/A self assertEqual actual expected N/A test_task_missing N/A N/A self N/A N/A N/A Exits if the task is missing N/A N/A N/A self assertRaises SystemExit N/A self stderr test/examples/run/basic whiz N/A test_too_many_tasks N/A N/A self N/A N/A N/A Exits if there are too many matching tasks N/A N/A N/A self assertRaisesRegexp SystemExit 2 N/A self stderr test/examples/run/multiple whiz N/A test_dry_run N/A N/A self N/A N/A N/A Honors the dry-run flag N/A actual N/A N/A self stdout test/examples/run/basic bar --dry-run N/A expected N/A Would have executed: bar N/A N/A N/A self assertEqual actual expected N/A test_tasks N/A N/A self N/A N/A N/A Make sure we can enumerate tasks N/A actual N/A N/A self stdout test/examples/run/basic tasks N/A expected N/A bar # Dummy function N/A N/A N/A self assertEqual actual expected N/A test_tasks_none_found N/A N/A self N/A N/A N/A Display the correct thing when no tasks are found N/A actual N/A N/A self stdout test/examples/run/none tasks N/A expected N/A No tasks found! N/A N/A N/A self assertEqual actual expected N/A N/A