Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def it_should_not_fail_when_no_dependencies_exist(config):
expect(os.path.isdir(config.location)) == False
expect(gitman.uninstall()) == True
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()
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()
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()
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()
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
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
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()
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()