mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Remove invoke self code for test_converter_public_trades
This commit is contained in:
parent
43645729a0
commit
f6a8e03b59
|
@ -298,28 +298,3 @@ def test_public_trades_testdata_sanity(candles, public_trades_list, public_trade
|
|||
assert populate_dataframe_with_trades_trades.columns.tolist() == [
|
||||
'timestamp', 'id', 'type', 'side', 'price',
|
||||
'amount', 'cost', 'date']
|
||||
|
||||
|
||||
class ReporterPlugin:
|
||||
def pytest_sessionfinish(self):
|
||||
print("*** test run reporting finishing")
|
||||
|
||||
|
||||
# # invoke self to be able to debug
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
import sys
|
||||
|
||||
# print cwd
|
||||
print("cwd: ", os.getcwd())
|
||||
try:
|
||||
import pytest
|
||||
retval = pytest.main(
|
||||
["--stepwise", "-k", "test_public_trades", "-vvv"], plugins=[ReporterPlugin()])
|
||||
sys.exit(retval)
|
||||
except ImportError:
|
||||
print("Please install pytest to run tests")
|
||||
sys.exit(1)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user