Improve documentation for config imports

This commit is contained in:
Matthias
2022-04-10 10:14:34 +02:00
parent cd2e49bb60
commit 9556af1e6c
3 changed files with 34 additions and 3 deletions

View File

@@ -219,8 +219,9 @@ def test_from_recursive_files(testdatadir) -> None:
assert conf['entry_pricing']
assert conf['entry_pricing']['price_side'] == "same"
assert conf['exit_pricing']
# The other key comes from pricing2, which is imported by pricing.json
assert conf['exit_pricing']['price_side'] == "other"
# The other key comes from pricing2, which is imported by pricing.json.
# pricing.json is a level higher, therefore wins.
assert conf['exit_pricing']['price_side'] == "same"
assert len(conf['config_files']) == 4
assert 'testconfig.json' in conf['config_files'][0]