tests: return default database name if not running within tox (#68059)
This commit is contained in:
parent
48f1e920bc
commit
54cb569898
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue