Skip to content

Commit

Permalink
testest
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjng committed Jan 25, 2024
1 parent 36ceed4 commit cfebdaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from lakefs_spec import LakeFSFileSystem
from lakefs_spec.transaction import Placeholder
from tests.util import RandomFileFactory, put_random_file_on_branch, with_counter
from tests.util import RandomFileFactory, put_random_file_on_branch


def test_transaction_commit(
Expand Down Expand Up @@ -143,7 +143,6 @@ def test_transaction_failure(

message = f"Add file {random_file.name}"

fs.client, counter = with_counter(fs.client)
try:
with fs.transaction as tx:
fs.put_file(lpath, rpath)
Expand All @@ -153,7 +152,7 @@ def test_transaction_failure(
pass

# assert that no commit happens because of the exception.
assert counter.count("commits_api.commit") == 0
assert not fs.exists(rpath)


def test_placeholder_representations(
Expand Down

0 comments on commit cfebdaf

Please sign in to comment.