How to use the gitman.uninstall function in gitman

To help you get started, we’ve selected a few gitman examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jacebrowning / gitman / tests / test_api.py View on Github external
def it_should_not_fail_when_no_dependencies_exist(config):
        expect(os.path.isdir(config.location)) == False

        expect(gitman.uninstall()) == True
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_dependencies_when_they_exist(config):
            gitman.install('gitman_1', depth=1)
            expect(os.path.isdir(config.location)) == True

            expect(gitman.uninstall(keep_location=True)) == True

            path = os.path.join(config.location, 'gitman_1')
            expect(os.path.exists(path)) == False

            expect(os.path.exists(config.location)) == True

            gitman.uninstall()
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_the_log_file(config):
            gitman.install('gitman_1', depth=1)
            gitman.list()
            expect(os.path.exists(config.log_path)) == True

            gitman.uninstall(keep_location=True)
            expect(os.path.exists(config.log_path)) == False

            gitman.uninstall()
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_the_log_file(config):
            gitman.install('gitman_1', depth=1)
            gitman.list()
            expect(os.path.exists(config.log_path)) == True

            gitman.uninstall(keep_location=True)
            expect(os.path.exists(config.log_path)) == False

            gitman.uninstall()
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_should_not_fail_when_no_dependencies_exist(config):
            expect(os.path.isdir(config.location)) == False

            expect(gitman.uninstall(keep_location=True)) == True

            gitman.uninstall()
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_the_log_file(config):
        gitman.install('gitman_1', depth=1)
        gitman.list()
        expect(os.path.exists(config.log_path)) == True

        gitman.uninstall()
        expect(os.path.exists(config.log_path)) == False
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_dependencies_when_they_exist(config):
        gitman.install('gitman_1', depth=1)
        expect(os.path.isdir(config.location)) == True

        expect(gitman.uninstall()) == True

        expect(os.path.exists(config.location)) == False
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_should_not_fail_when_no_dependencies_exist(config):
            expect(os.path.isdir(config.location)) == False

            expect(gitman.uninstall(keep_location=True)) == True

            gitman.uninstall()
github jacebrowning / gitman / tests / test_api.py View on Github external
def it_deletes_dependencies_when_they_exist(config):
            gitman.install('gitman_1', depth=1)
            expect(os.path.isdir(config.location)) == True

            expect(gitman.uninstall(keep_location=True)) == True

            path = os.path.join(config.location, 'gitman_1')
            expect(os.path.exists(path)) == False

            expect(os.path.exists(config.location)) == True

            gitman.uninstall()