Skip to content

Commit

Permalink
use mysql con_db
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpgraae committed Mar 22, 2022
1 parent 9738fe6 commit f0257fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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}'

Expand Down

0 comments on commit f0257fc

Please sign in to comment.