Skip to content

Commit ed5624c

Browse files
semsorockCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 18dddb1 commit ed5624c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_cardano_blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def test_block_latest_transactions_cbor(requests_mock):
242242
def test_integration_block_latest_transactions_cbor():
243243
if os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'):
244244
api = BlockFrostApi(project_id=os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'))
245-
assert (api.block_latest_transactions_cbor() or
246-
api.block_latest_transactions_cbor() == [])
245+
result = api.block_latest_transactions_cbor()
246+
assert result or result == []
247247

248248

249249
def test_block_transactions_cbor(requests_mock):

0 commit comments

Comments
 (0)