finally fixed duplicate trades

This commit is contained in:
2023-01-04 23:06:20 +01:00
parent b647427581
commit a940e22065
3 changed files with 29 additions and 5 deletions

View File

@@ -33,6 +33,24 @@ def test_write_to_log_4():
config.read_config(r'config.yaml')
log_file = config.get_value('General.log_file')
assert (log_file)
text = "2021/05/11 23:34:41 13600796 bad [INFO Client 9008] @From <CHIP> HerculadeDrik: Hi, I would like to buy your Cortex Relic Chambers Map (T15) listed for 3.4 exalted in Ultimatum (stash tab \"$\"; position: left 3, top 9)"
text = "2021/05/11 23:34:41 13600796 bad [INFO Client 9008] @From <CHIP> HerculadeDrik: Hi, I would like to buy your Cortex Relic Chambers Map (T15) listed for 40000000 exalted in Ultimatum (stash tab \"$\"; position: left 3, top 9)"
with open(log_file, 'a') as f:
f.write(text)
def test_write_to_log_41():
config.read_config(r'config.yaml')
log_file = config.get_value('General.log_file')
assert (log_file)
text = "2021/05/11 23:34:41 13600796 bad [INFO Client 9008] @From <CHIP> MaxMustermann: Hi, I would like to buy your Cortex Relic Chambers Map (T15) listed for 3.4 exalted in Ultimatum (stash tab \"$\"; position: left 3, top 9)"
with open(log_file, 'a') as f:
f.write(text)
def test_write_to_log_42():
config.read_config(r'config.yaml')
log_file = config.get_value('General.log_file')
assert (log_file)
text = "2021/05/11 23:34:41 13600796 bad [INFO Client 9008] @From <CHIP> HenryHase: Hi, I would like to buy your Cortex Relic Chambers Map (T15) listed for 3.4 exalted in Ultimatum (stash tab \"$\"; position: left 3, top 9)"
with open(log_file, 'a') as f:
f.write(text)