diff --git a/test/conftest.py b/test/conftest.py index 91815a1..da9e383 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -56,10 +56,9 @@ def lfs_client(pytestconfig): # Setup lakeFS repo_name = pytestconfig.getoption('--repository') storage_namespace = pytestconfig.getoption('--storage_namespace') - lfs_client.config.setup_comm_prefs(CommPrefsInput(feature_updates=False, security_updates=False, email=MOCK_EMAIL)) lfs_client.internal_api.setup_comm_prefs(CommPrefsInput(feature_updates=False, security_updates=False, email=MOCK_EMAIL)) - # lfs_client.internal_api.setup(Setup(username="lynn", - # key=AccessKeyCredentials(access_key_id=LAKEFS_ACCESS_KEY, secret_access_key=LAKEFS_SECRET_KEY))) - lfs_client.repositories.create_repository( + lfs_client.internal_api.setup(Setup(username="lynn", + key=AccessKeyCredentials(access_key_id=LAKEFS_ACCESS_KEY, secret_access_key=LAKEFS_SECRET_KEY))) + lfs_client.repositories_api.create_repository( RepositoryCreation(name=repo_name, storage_namespace=storage_namespace)) return lfs_client \ No newline at end of file