remove full-config in tests and load full_config file

This commit is contained in:
Matthias
2019-04-24 09:30:59 +02:00
parent c3a9db6488
commit 6d2a1cfb44
2 changed files with 9 additions and 65 deletions

View File

@@ -18,6 +18,15 @@ from freqtrade.state import RunMode
from freqtrade.tests.conftest import log_has
@pytest.fixture(scope="function")
def all_conf():
config_file = Path(__file__).parents[2] / "config_full.json.example"
print(config_file)
configuration = Configuration(Namespace())
conf = configuration._load_config_file(str(config_file))
return conf
def test_load_config_invalid_pair(default_conf) -> None:
default_conf['exchange']['pair_whitelist'].append('ETH-BTC')