diff --git a/src/config.lock.py b/src/config.lock.py index 42bf4dd..968ca53 100644 --- a/src/config.lock.py +++ b/src/config.lock.py @@ -43,7 +43,7 @@ class ProductionConfig(Config): class TestingConfig(Config): - SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'database.sqlite') + SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'test_database.sqlite') @staticmethod def init_app(app): diff --git a/test/test_scoreboard.py b/test/test_scoreboard.py index 85d0bb3..f47b32c 100644 --- a/test/test_scoreboard.py +++ b/test/test_scoreboard.py @@ -18,6 +18,7 @@ from src.models import db, Result from src.application import create_app import unittest +import os import json @@ -31,6 +32,7 @@ class ScoreboardTestCase(unittest.TestCase): def tearDown(self): db.drop_all() + os.remove("src/test_database.sqlite") self.app_context.pop() def test_index(self):