From 31baf087ee7b9235c7756319f455173bf63d95df Mon Sep 17 00:00:00 2001 From: Nir Ozery Date: Wed, 6 Dec 2023 17:06:37 +0000 Subject: [PATCH] test fixes --- clients/python-wrapper/setup.py | 2 +- clients/python-wrapper/tests/integration/test_reference.py | 6 +++--- clients/python-wrapper/tests/integration/test_sanity.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/python-wrapper/setup.py b/clients/python-wrapper/setup.py index 376ef36a19c..4bcfa144a93 100644 --- a/clients/python-wrapper/setup.py +++ b/clients/python-wrapper/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages NAME = "lakefs" -VERSION = "0.1.0-beta.2" +VERSION = "0.1.0-beta.3" # To install the library, run the following # # python setup.py install diff --git a/clients/python-wrapper/tests/integration/test_reference.py b/clients/python-wrapper/tests/integration/test_reference.py index 82d2244382e..332b5b4b5f0 100644 --- a/clients/python-wrapper/tests/integration/test_reference.py +++ b/clients/python-wrapper/tests/integration/test_reference.py @@ -19,7 +19,7 @@ def test_reference_diff(setup_branch_with_commits): branch = setup_branch_with_commits commits = list(branch.log(max_amount=2)) - assert len(list(branch.diff(branch.commit_id()))) == 0 + assert len(list(branch.diff(branch.get_commit().id))) == 0 changes = list(branch.diff(commits[0].id, type="two_dot")) assert len(changes) == 0 @@ -51,11 +51,11 @@ def test_reference_merge_into(setup_branch_with_commits): other_branch = repo.branch("test_reference_merge_into").create(main) ref = repo.ref(commits[1].id) ref.merge_into(other_branch, message="Merge1") - assert other_branch.commit_message() == "Merge1" + assert other_branch.get_commit().message == "Merge1" assert list(other_branch.log(max_amount=2))[1].id == commits[1].id branch.merge_into(other_branch.id, message="Merge2") - assert other_branch.commit_message() == "Merge2" + assert other_branch.get_commit().message == "Merge2" assert list(other_branch.log(max_amount=3))[2].id == commits[0].id diff --git a/clients/python-wrapper/tests/integration/test_sanity.py b/clients/python-wrapper/tests/integration/test_sanity.py index 61a9574d895..f68a15af708 100644 --- a/clients/python-wrapper/tests/integration/test_sanity.py +++ b/clients/python-wrapper/tests/integration/test_sanity.py @@ -70,13 +70,13 @@ def test_tag_sanity(setup_repo): # expect not found with expect_exception_context(NotFoundException): - tag.commit_message() + tag.get_commit() commit = repo.commit("main") res = tag.create(commit.id) assert res == tag assert tag.id == tag_name - assert tag.get_commit().metadata() == commit.get_commit().metadata + assert tag.get_commit().metadata == commit.get_commit().metadata assert tag.get_commit().message == commit.get_commit().message # Create again