diff --git a/qlib/rl/order_execution/tests/__init__.py b/qlib/rl/order_execution/tests/__init__.py deleted file mode 100644 index 59e481eb9..000000000 --- a/qlib/rl/order_execution/tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. diff --git a/qlib/rl/order_execution/tests/test_simulator_qlib.py b/tests/rl/test_qlib_simulator.py similarity index 95% rename from qlib/rl/order_execution/tests/test_simulator_qlib.py rename to tests/rl/test_qlib_simulator.py index 2a875058a..8197fe966 100644 --- a/qlib/rl/order_execution/tests/test_simulator_qlib.py +++ b/tests/rl/test_qlib_simulator.py @@ -46,11 +46,13 @@ def get_simulator(order: Order) -> SingleAssetQlibSimulator: track_data=True, ) + DATA_ROOT_DIR = Path(__file__).parent.parent / ".data" / "rl" / "qlib_simulator" + # fmt: off qlib_config = { - "provider_uri_day": Path(".data/cn/qlib_amc_1d"), - "provider_uri_1min": Path(".data/cn/qlib_amc_1min"), - "feature_root_dir": Path(".data/cn/qlib_amc_handler_stock"), + "provider_uri_day": DATA_ROOT_DIR / "qlib_amc_1d", + "provider_uri_1min": DATA_ROOT_DIR / "qlib_amc_1min", + "feature_root_dir": DATA_ROOT_DIR / "qlib_amc_handler_stock", "feature_columns_today": [ "$open", "$high", "$low", "$close", "$vwap", "$bid", "$ask", "$volume", "$bidV", "$bidV1", "$bidV3", "$bidV5", "$askV", "$askV1", "$askV3", "$askV5",