def given_a_downloaded_module_from_repository(step): for examples in step.hashes: url = examples[URL] module_name = examples[MODULE_NAME] repository = examples[REPOSITORY] response = api_utils.download_module(software_name=module_name, repository=repository, url=url) Assertions.assert_response_ok(response) assert_true(Fabutils.execute_assert_download(module_name)) world.software_downloaded.append(module_name)
def then_the_module_is_downloaded(step): Assertions.assert_response_ok(world.response) assert_true(Fabutils.execute_assert_download(world.software_name))
def then_the_module_is_not_deleted_from_the_system(step): Assertions.assert_response_ok(world.response) assert_false(Fabutils.execute_assert_download(world.module_name)) for module in world.software_downloaded: assert_true(Fabutils.execute_assert_download(module))
def then_the_module_is_deleted_from_the_system(step): Assertions.assert_response_ok(world.response) assert_false(Fabutils.execute_assert_download(world.module_name))