From b80dfe4f9c1c3c71c5d34abf11f0a2e272b5770a Mon Sep 17 00:00:00 2001 From: algorandpa Date: Wed, 15 Feb 2023 19:48:39 -0500 Subject: [PATCH] Use constants value for test config dir path --- piker/config.py | 4 ++-- piker/testing/__init__.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/config.py b/piker/config.py index b45011d1..a8f5f494 100644 --- a/piker/config.py +++ b/piker/config.py @@ -28,7 +28,7 @@ from typing import Optional from pathlib import Path from bidict import bidict import toml - +from piker.testing import TEST_CONFIG_DIR_PATH from .log import get_logger 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 # outside of the users filesystem if "pytest" in sys.modules: - app_name += '/_testing' + app_name += TEST_CONFIG_DIR_PATH # if WIN: if platform.system() == 'Windows': diff --git a/piker/testing/__init__.py b/piker/testing/__init__.py index e69de29b..5e3ac93a 100644 --- a/piker/testing/__init__.py +++ b/piker/testing/__init__.py @@ -0,0 +1 @@ +TEST_CONFIG_DIR_PATH = '_testing'