Skip to content

Commit

Permalink
remove redundant decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-be committed May 7, 2024
1 parent a625588 commit 9fb05e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions aiozk/test/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
pytestmark = pytest.mark.asyncio


@pytest.mark.asyncio
async def test_transaction(zk, path):
t = Transaction(zk)
t.create(path)
Expand All @@ -15,7 +14,6 @@ async def test_transaction(zk, path):
assert bool(res)


@pytest.mark.asyncio
async def test_fail_transaction(zk, path):
t = Transaction(zk)
t.create(path)
Expand All @@ -25,15 +23,13 @@ async def test_fail_transaction(zk, path):
assert not bool(res)


@pytest.mark.asyncio
async def test_transaction_contextmanager(zk, path):
async with Transaction(zk) as t:
t.create(path)
assert await zk.exists(path)
await zk.delete(path)


@pytest.mark.asyncio
async def test_transaction_contextmanager_fail(zk, path):
with pytest.raises(TransactionFailed):
async with Transaction(zk) as t:
Expand All @@ -42,7 +38,6 @@ async def test_transaction_contextmanager_fail(zk, path):
assert not await zk.exists(path)


@pytest.mark.asyncio
async def test_exception_handling(zk, path):
with pytest.raises(ValueError):
async with Transaction(zk) as t:
Expand Down

0 comments on commit 9fb05e2

Please sign in to comment.