From f6a8e03b593b489dac8140106ce428e8f6e1c70e Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:54:28 +0100 Subject: [PATCH] Remove invoke self code for test_converter_public_trades --- tests/data/test_converter_public_trades.py | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/tests/data/test_converter_public_trades.py b/tests/data/test_converter_public_trades.py index 5f57d8238..d0eb75b52 100644 --- a/tests/data/test_converter_public_trades.py +++ b/tests/data/test_converter_public_trades.py @@ -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)