diff --git a/hobo/test_utils.py b/hobo/test_utils.py index ff25d32..138898c 100644 --- a/hobo/test_utils.py +++ b/hobo/test_utils.py @@ -11,6 +11,8 @@ def get_safe_db_name(): pytest django append the tox env name automatically through a fixture so we have to skip this step. """ + if not os.environ.get('TOX_ENV_NAME'): + return 'hobo-test' BRANCH_NAME = os.environ.get('BRANCH_NAME', '').replace('/', '-')[:15] parts = [BRANCH_NAME] if not os.environ.get("TOX_PARALLEL_ENV"):