Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Rupesh Tare <rupesht@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON salt.modules composer salt.exceptions CommandExecutionError CommandNotFoundError SaltInvocationError N/A N/A composer __grains__ N/A N/A N/A composer __salt__ N/A N/A N/A composer __context__ N/A N/A N/A composer __opts__ N/A ComposerTestCase N/A TestCase N/A N/A 
    Test cases for salt.modules.composer
     test_install N/A N/A self N/A N/A N/A 
        Test for Install composer dependencies for a directory.
         N/A mock N/A MagicMock return_value False N/A N/A N/A patch object composer _valid_composer mock N/A N/A N/A N/A self assertRaises CommandNotFoundError N/A composer install d N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A N/A N/A self assertRaises SaltInvocationError N/A composer install None N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 1 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertRaises CommandExecutionError N/A composer install d N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 0 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertTrue N/A N/A composer install dir None None None None None None None None None True N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A rval N/A retcode stderr stdout 0 A B N/A mock N/A MagicMock return_value rval N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertEqual N/A N/A composer install dir rval N/A test_update N/A N/A self N/A N/A N/A 
        Test for Update composer dependencies for a directory.
         N/A mock N/A MagicMock return_value False N/A N/A N/A patch object composer _valid_composer mock N/A N/A N/A N/A self assertRaises CommandNotFoundError N/A composer update d N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer did_composer_install mock N/A N/A N/A N/A self assertRaises SaltInvocationError N/A composer update None N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer did_composer_install mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 1 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertRaises CommandExecutionError N/A composer update d N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer did_composer_install mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 0 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertTrue N/A N/A composer update dir None None None None None None None None None True N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value False N/A N/A N/A patch object composer did_composer_install mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 0 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertTrue N/A N/A composer update dir None None None None None None None None None True N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer did_composer_install mock N/A N/A rval N/A retcode stderr stdout 0 A B N/A mock N/A MagicMock return_value rval N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertEqual N/A N/A composer update dir rval N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value False N/A N/A N/A patch object composer did_composer_install mock N/A N/A rval N/A retcode stderr stdout 0 A B N/A mock N/A MagicMock return_value rval N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertEqual N/A N/A composer update dir rval N/A test_selfupdate N/A N/A self N/A N/A N/A 
        Test for Composer selfupdate
         N/A mock N/A MagicMock return_value False N/A N/A N/A patch object composer _valid_composer mock N/A N/A N/A N/A self assertRaises CommandNotFoundError N/A composer selfupdate N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 1 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertRaises CommandExecutionError N/A composer selfupdate N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A mock N/A MagicMock return_value N/A retcode stderr 0 A N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertTrue N/A N/A composer selfupdate quiet True N/A mock N/A MagicMock return_value True N/A N/A N/A patch object composer _valid_composer mock N/A N/A rval N/A retcode stderr stdout 0 A B N/A mock N/A MagicMock return_value rval N/A N/A N/A patch dict N/A composer __salt__ N/A cmd.run_all mock N/A N/A N/A N/A self assertEqual N/A N/A composer selfupdate rval N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests ComposerTestCase needs_daemon False