kid / test_scanner.py
nastaseshot's picture
test_scanner.py
56c1a07 verified
# test_scanner.py
import pytest
from scanner.radium_scraper import fetch_new_radium_tokens
from scanner.pumpfun_scraper import fetch_new_pumpfun_tokens
def test_fetch_new_radium_tokens():
tokens = fetch_new_radium_tokens()
assert isinstance(tokens, list), "Radium tokens should be a list"
if tokens:
assert "id" in tokens[0], "Token dict must contain 'id'"
def test_fetch_new_pumpfun_tokens():
tokens = fetch_new_pumpfun_tokens()
assert isinstance(tokens, list), "Pumpfun tokens should be a list"
if tokens:
assert "id" in tokens[0], "Token dict must contain 'id'"