Use dict_deep

This commit is contained in:
2021-05-09 16:17:56 +02:00
parent 7b1943fb86
commit fcf65b7c10
3 changed files with 10 additions and 3 deletions

View File

@@ -2,8 +2,9 @@ from src import config
def test_write_to_log():
conf = config.read_config(r'config.yaml')
log_file = conf['General']['log_file']
config.read_config(r'config.yaml')
log_file = config.get_value('General.log_file')
assert(log_file)
text = '2021/03/08 23:24:52 17931875 bb3 [INFO Client 1492] @From Sinusal: Hi, I would like to buy your level 21 23% Vaal Impurity of Lightning ' \
'listed for 18 chaos in Ritual (stash tab "$"; position: left 22, top 5)'
with open(log_file, 'a') as f: