удалить лимиты
This commit is contained in:
@@ -24,11 +24,6 @@ timezone = "Europe/Warsaw"
|
||||
times = ["09:00", "21:00"]
|
||||
[scanner]
|
||||
categories = ["spot", "linear"]
|
||||
[risk]
|
||||
max_risk_per_trade_pct = 2
|
||||
max_total_exposure_pct = 40
|
||||
max_positions = 5
|
||||
max_leverage = 3
|
||||
[storage]
|
||||
database_path = "state.db"
|
||||
"""
|
||||
@@ -57,12 +52,6 @@ def test_loads_and_resolves_database_path(tmp_path: Path):
|
||||
assert config.prompts.file_path == tmp_path / "prompts.md"
|
||||
|
||||
|
||||
def test_rejects_risk_above_hard_limit(tmp_path: Path):
|
||||
path = write_config(tmp_path, CONFIG.replace("max_leverage = 3", "max_leverage = 4"))
|
||||
with pytest.raises(ConfigError, match="max_leverage"):
|
||||
load_config(path)
|
||||
|
||||
|
||||
def test_rejects_non_official_zai_endpoint(tmp_path: Path):
|
||||
changed = CONFIG.replace("api_key = \"zai-key\"", 'api_key = "zai-key"\nbase_url = "https://example.com"', 1)
|
||||
path = write_config(tmp_path, changed)
|
||||
|
||||
Reference in New Issue
Block a user