Skip to content

Commit

Permalink
✅ Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 9, 2024
1 parent 8b7b3e8 commit 5e78764
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_unit_dexswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ async def test_get_balances(dex):
get_account_balance = AsyncMock()
result = await dex.get_balances()
assert result is not None
assert "🏦" in result
assert get_account_balance.awaited
assert ("1" in result) or ("56" in result) or ("137" in result)

Expand All @@ -120,7 +119,6 @@ async def test_get_positions(dex):
get_account_position = AsyncMock()
result = await dex.get_positions()
assert result is not None
assert "📊" in result
assert "Opened" in result
assert "Margin" in result
assert get_account_position.awaited
Expand All @@ -132,7 +130,6 @@ async def test_get_pnls(dex):
get_account_pnl = AsyncMock()
result = await dex.get_pnl()
assert result is not None
assert "🏆" in result
assert get_account_pnl.awaited
assert ("eth" in result) or ("pol" in result)

Expand All @@ -143,7 +140,6 @@ async def test_get_quotes(dex):
get_quote = AsyncMock()
result = await dex.get_quotes(symbol="WBTC")
assert result is not None
assert "⚖️" in result
assert get_quote.awaited
assert ("eth" in result) or ("pol" in result)
numerical_count = len([char for char in result if char.isdigit()])
Expand All @@ -154,7 +150,6 @@ async def test_get_quotes(dex):
async def test_get_quotes_invalid(dex):
"""getquote Testing"""
result = await dex.get_quotes(symbol="NOTATOKEN")
assert "⚖️" in result
assert "None" in result


Expand All @@ -163,7 +158,6 @@ async def test_submit_order(dex, order):
result = await dex.submit_order(order)
print(result)
assert result is not None
assert "🦄" in result
assert ("eth" in result) or ("pol" in result)
assert ("⚠️" in result) or ("⛽" in result)

Expand Down

0 comments on commit 5e78764

Please sign in to comment.