Skip to content

Commit

Permalink
Make tests run.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Apr 25, 2018
1 parent 9e340f9 commit 2b15b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class DefaultAlexandriaConfig(object):
TESTING = bool(os.environ.get("_".join((APP_NAME, "TESTING"))))
SUDO = bool(os.environ.get("_".join((APP_NAME, "SUDO"))))

SQL_HOST = "127.0.0.1"
SQL_HOST = "db"
SQL_PORT = 3306
SQL_TEST_PORT = 3306
SQL_TEST_PORT = 3309
SQL_USERNAME = "root"
SQL_PASSWORD = ""
SQL_ENGINE = "mysql"
SQL_DB_NAME = "alexandria"
SQL_TEST_DB_NAME = "%s_test" % SQL_DB_NAME
SQLALCHEMY_DATABASE_URI = '%s://%s:%s@%s:%d/%s' % (SQL_ENGINE, SQL_USERNAME,
SQL_PASSWORD, SQL_HOST, SQL_PORT, SQL_DB_NAME)
SQLALCHEMY_TEST_DATABASE_URI = '%s://%s:%s@%s:%d/%s' % (SQL_ENGINE, SQL_USERNAME,
SQLALCHEMY_TEST_DATABASE_URI = '%s://%s:%s@%s_test:%d/%s' % (SQL_ENGINE, SQL_USERNAME,
SQL_PASSWORD, SQL_HOST, SQL_PORT, SQL_TEST_DB_NAME)
SQLALCHEMY_ECHO = not DEVEL
DATABASE_CONNECT_OPTIONS = {"user":"root"}
Expand Down

0 comments on commit 2b15b25

Please sign in to comment.