Refactor: Update ProductInfo and Price classes to include aggregation methods; remove standalone aggregation functions; fix docs

This commit is contained in:
2025-10-10 10:21:55 +02:00
parent f1bf00c759
commit 757da56a21
6 changed files with 113 additions and 84 deletions

View File

@@ -1,6 +1,19 @@
import pytest
import asyncio
from app.api.markets.binance import BinanceWrapper
# fix warning about no event loop
@pytest.fixture(scope="session", autouse=True)
def event_loop():
"""
Ensure there is an event loop for the duration of the tests.
"""
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
yield loop
loop.close()
@pytest.mark.market
@pytest.mark.api
class TestBinance: