Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip committed Oct 30, 2023
1 parent ed672b3 commit 121a5cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import pytest

from dotenv import load_dotenv

load_dotenv(".env.example")

from bots.settings import TOKEN_ADDRESS, STABLE_TOKEN_ADDRESS
from bots.settings import TOKEN_ADDRESS
from bots.data import Token, Price


@pytest.mark.asyncio
async def test_get_by_token_address():
t = await Token.get_by_token_address(TOKEN_ADDRESS)
assert t.token_address == TOKEN_ADDRESS
assert t.listed == True


@pytest.mark.asyncio
async def test_get_prices():
prices = await Price.get_prices([await Token.get_by_token_address(TOKEN_ADDRESS)])
assert len(prices) == 1
[price] = prices
assert price.pretty_price != 0
assert price.pretty_price != 0

0 comments on commit 121a5cf

Please sign in to comment.