mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
Fix some minor test failures
This commit is contained in:
parent
8f9f4b40cd
commit
2393a9fecf
|
@ -79,8 +79,8 @@ def init_db(db_url: str) -> None:
|
|||
Order.session = Trade.session
|
||||
PairLock.session = Trade.session
|
||||
_KeyValueStoreModel.session = Trade.session
|
||||
CustomData._session = scoped_session(sessionmaker(bind=engine, autoflush=True),
|
||||
scopefunc=get_request_or_thread_id)
|
||||
CustomData.session = scoped_session(sessionmaker(bind=engine, autoflush=True),
|
||||
scopefunc=get_request_or_thread_id)
|
||||
|
||||
previous_tables = inspect(engine).get_table_names()
|
||||
ModelBase.metadata.create_all(engine)
|
||||
|
|
|
@ -150,7 +150,7 @@ def test_telegram_init(default_conf, mocker, caplog) -> None:
|
|||
"['stopbuy', 'stopentry'], ['whitelist'], ['blacklist'], "
|
||||
"['bl_delete', 'blacklist_delete'], "
|
||||
"['logs'], ['edge'], ['health'], ['help'], ['version'], ['marketdir'], "
|
||||
"['order']], ['list_custom_data']")
|
||||
"['order'], ['list_custom_data']]")
|
||||
|
||||
assert log_has(message_str, caplog)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user