fix: pyproject.toml, module paths

This commit is contained in:
smypmsa
2025-03-17 15:47:28 +00:00
parent 396e9bce1d
commit 684b1c4b61
14 changed files with 72 additions and 56 deletions
+5 -3
View File
@@ -6,8 +6,11 @@ Tests websocket monitoring for new pump.fun tokens
import asyncio
import logging
import os
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent / "src"))
import config
from core.pubkeys import PumpAddresses
from monitoring.listener import PumpTokenListener
from trading.base import TokenInfo
@@ -45,8 +48,7 @@ async def test_pump_token_listener(
):
"""Test the token listener functionality"""
wss_endpoint = os.environ.get(
"SOLANA_NODE_WSS_ENDPOINT", config.PUBLIC_WSS_ENDPOINT
)
"SOLANA_NODE_WSS_ENDPOINT")
logger.info(f"Connecting to WebSocket: {wss_endpoint}")
listener = PumpTokenListener(wss_endpoint, PumpAddresses.PROGRAM)
callback = TestTokenCallback()