Use constants value for test config dir path

paper_trade_improvements_rebase
algorandpa 2023-02-15 19:48:39 -05:00 committed by jaredgoldman
parent 6257cc8dae
commit b80dfe4f9c
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ from typing import Optional
from pathlib import Path from pathlib import Path
from bidict import bidict from bidict import bidict
import toml import toml
from piker.testing import TEST_CONFIG_DIR_PATH
from .log import get_logger from .log import get_logger
log = get_logger('broker-config') log = get_logger('broker-config')
@ -78,7 +78,7 @@ def get_app_dir(app_name, roaming=True, force_posix=False):
# within the tractor runtimes and store testing config data # within the tractor runtimes and store testing config data
# outside of the users filesystem # outside of the users filesystem
if "pytest" in sys.modules: if "pytest" in sys.modules:
app_name += '/_testing' app_name += TEST_CONFIG_DIR_PATH
# if WIN: # if WIN:
if platform.system() == 'Windows': if platform.system() == 'Windows':

View File

@ -0,0 +1 @@
TEST_CONFIG_DIR_PATH = '_testing'