Skip to content

Commit

Permalink
removing faucet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stat committed Jan 17, 2025
1 parent ce27573 commit 4af994a
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,40 +67,6 @@ def test_wallet_import(wallet_data):
assert imported_wallet.default_address.address_id == default_address_id


@pytest.mark.e2e
def test_wallet_faucet(imported_wallet):
"""Test wallet faucet with ETH."""
initial_balances = imported_wallet.balances()
initial_eth_balance = Decimal(str(initial_balances.get("eth", 0)))

try:
imported_wallet.faucet()
time.sleep(5) # increased wait time for balance to update

final_balances = imported_wallet.balances()
final_eth_balance = Decimal(str(final_balances.get("eth", 0)))
assert final_eth_balance > initial_eth_balance
except FaucetLimitReachedError:
pytest.skip("Faucet limit reached")


@pytest.mark.e2e
def test_wallet_faucet_usdc(imported_wallet):
"""Test wallet faucet with USDC."""
initial_balances = imported_wallet.balances()
initial_usdc_balance = Decimal(str(initial_balances.get("usdc", 0)))

try:
imported_wallet.faucet(asset_id="usdc")
time.sleep(5) # increased wait time for balance to update

final_balances = imported_wallet.balances()
final_usdc_balance = Decimal(str(final_balances.get("usdc", 0)))
assert final_usdc_balance > initial_usdc_balance
except FaucetLimitReachedError:
pytest.skip("Faucet limit reached")


@pytest.mark.e2e
def test_wallet_transfer(imported_wallet):
"""Test wallet transfer."""
Expand Down

0 comments on commit 4af994a

Please sign in to comment.