From f0257fcd8a97066f868ff54e8779b5ef6363fd93 Mon Sep 17 00:00:00 2001 From: Philip Graae Date: Tue, 22 Mar 2022 12:34:53 +0100 Subject: [PATCH] use mysql con_db --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a221e4fc..a32b8349 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -405,11 +405,10 @@ def random_string(length): yield str(dbfile) elif provider == 'mysql' or provider == 'postgresql': - dbpath = random_string(24) if provider == 'mysql': db_server = mysql_server - con_db = 'terracotta' + con_db = 'mysql' elif provider == 'postgresql': db_server = postgresql_server con_db = 'postgres' @@ -431,6 +430,7 @@ def random_string(length): except InvalidDatabaseError as exc: raise RuntimeError(f'error connecting to {provider} server') from exc + dbpath = random_string(24) try: yield f'{db_server}/{dbpath}'