Skip to content

Commit 00766b2

Browse files
authored
Tests portability (#482)
* try to create a 'utf8' DB first, if it fails create a 'SQL_ASCII' encoded * failed linting * add '.vscode' to '.gitignore' * use 'template0' to create new database #482 Co-authored-by: Camill Kaipf <[email protected]>
1 parent 25acbec commit 00766b2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ development_notb.ini
2929
_build*
3030
docs/make.bat
3131
docs/Makefile
32+
.vscode

tests/integration/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def initDb(self):
3838
# create database from scratch:
3939
if database_exists(db_url):
4040
drop_database(db_url)
41-
create_database(db_url)
41+
42+
# handling encoding error
43+
create_database(db_url, template="template0", encoding="utf8")
4244

4345
# get engine and session factory
4446
self.engine = get_engine(self.settings)

0 commit comments

Comments
 (0)