Skip to content

Commit

Permalink
Merge pull request #32 from blockfrost/srk/fixAddrTest
Browse files Browse the repository at this point in the history
Fix addresses/{address}/utxos/{asset} integration test
  • Loading branch information
sorki authored Feb 8, 2023
2 parents dee74d5 + 578c8cc commit 222f287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_cardano_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from blockfrost import BlockFrostApi, ApiError
from blockfrost.utils import convert_json_to_object

address = 'addr1qx466898end6q5mpvrwwmycq35v83c9e8cnffadv6gr6q6azs4s26v4800nwg8jygvrdqh6xhsphct0d4zqsnd3sagxqqjjgln'
address = 'addr1qyptln5t5s0mastzc9rksn6wdqp9ynt67ahw0nhzukar5keu7yzv8ay6qvmlywtgvt7exaxt783dxuzv03qal7muda5sl42hg6'
stake_address = 'stake1ux3g2c9dx2nhhehyrezyxpkstartcqmu9hk63qgfkccw5rqttygt7'
asset = 'b0d07d45fe9514f80213f4020e5a61241458be626841cde717cb38a76e7574636f696e'
asset = 'f4988f549728dc76b58d7677849443caf6e5385dc67e6c25f6aa901e506978656c54696c653235'


def test_address(requests_mock):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cardano_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_block_latest_transactions(requests_mock):
def test_integration_block_latest_transactions():
if os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'):
api = BlockFrostApi(project_id=os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'))
assert api.block_latest_transactions()
assert (api.block_latest_transactions() or
api.block_latest_transactions() == [])


def test_block(requests_mock):
Expand Down

0 comments on commit 222f287

Please sign in to comment.