Compare commits

...

1 Commits

Author SHA1 Message Date
Frédéric Péters 54cb569898 tests: return default database name if not running within tox (#68059)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details
2022-08-09 14:23:57 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -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"):