def client_with_lfs_warning(project): """Return a Renku repository with lfs warnings active.""" from renku.core.management import LocalClient client = LocalClient(path=project) client.set_value('renku', 'lfs_threshold', '0b') client.repo.git.add('.renku/renku.ini') client.repo.index.commit('update renku.ini') yield client
def client_with_lfs_warning(project): """Return a Renku repository with lfs warnings active.""" from renku.core.management import LocalClient client = LocalClient(path=project) client.set_value("renku", "lfs_threshold", "0b") client.repo.git.add(".renku/renku.ini") client.repo.index.commit("update renku.ini") yield client