| 1234567891011121314151617 |
- import pytest
- import okx_codex_trader
- from okx_codex_trader.config import load_config
- def test_package_exports_version():
- assert okx_codex_trader.__version__ == "0.1.0"
- def test_load_config_requires_okx_credentials(monkeypatch):
- monkeypatch.delenv("OKX_API_KEY", raising=False)
- monkeypatch.delenv("OKX_API_SECRET", raising=False)
- monkeypatch.delenv("OKX_API_PASSPHRASE", raising=False)
- with pytest.raises(ValueError):
- load_config()
|