Local changes: Updated model training, removed debug instrumentation, and configuration improvements
This commit is contained in:
24
tests/unit/exchanges/test_base.py
Normal file
24
tests/unit/exchanges/test_base.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""Tests for base exchange adapter."""
|
||||
|
||||
import pytest
|
||||
from unittest.mock import Mock, AsyncMock
|
||||
from src.exchanges.base import BaseExchange
|
||||
|
||||
|
||||
class TestBaseExchange:
|
||||
"""Tests for BaseExchange abstract class."""
|
||||
|
||||
def test_base_exchange_init(self):
|
||||
"""Test base exchange initialization."""
|
||||
# Can't instantiate abstract class, test through concrete implementation
|
||||
from src.exchanges.coinbase import CoinbaseExchange
|
||||
|
||||
exchange = CoinbaseExchange(
|
||||
name="test",
|
||||
api_key="test_key",
|
||||
secret_key="test_secret"
|
||||
)
|
||||
assert exchange.name == "test"
|
||||
assert exchange.api_key == "test_key"
|
||||
assert not exchange.is_connected
|
||||
|
||||
Reference in New Issue
Block a user