# Path: webtools/database.py

# 
# Path: tests/settings.py
# class TestOverwriteSettings(Settings):
#     SQLALCHEMY_ENGINE_URL = "sqlite://"
#     AUTHENTICATION_BACKENDS = ["webtools.auth.backends.DatabaseAuthenticationBackend"]
# 
#     JINJA2_TEMPLATE_DIRS = [
#         os.path.join(CURRENT_PATH, "template")
#     ]
#     INSTALLED_MODULES = [
#         "tests",
#     ]
# 
#     COMMANDS = [
#         "webtools.management.commands.runserver.RunserverCommand",
#     ]
# 
#     I18N = True
# 
#     I18N_DIRECTORIES = [
#         os.path.join(CURRENT_PATH, "locale"),
#     ]


import unittest
import copy
from webtools.database import Base
from ..settings import TestOverwriteSettings
        from webtools.application import Application




class DatabaseSessionTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):

        cls.app = Application(TestOverwriteSettings())
        Base.metadata.create_all(cls.app.engine)

    @classmethod
    def tearDownClass(cls):

# Path: webtools/database.py

# 
# Path: tests/settings.py
# class TestOverwriteSettings(Settings):
#     SQLALCHEMY_ENGINE_URL = "sqlite://"
#     AUTHENTICATION_BACKENDS = ["webtools.auth.backends.DatabaseAuthenticationBackend"]
# 
#     JINJA2_TEMPLATE_DIRS = [
#         os.path.join(CURRENT_PATH, "template")
#     ]
#     INSTALLED_MODULES = [
#         "tests",
#     ]
# 
#     COMMANDS = [
#         "webtools.management.commands.runserver.RunserverCommand",
#     ]
# 
#     I18N = True
# 
#     I18N_DIRECTORIES = [
#         os.path.join(CURRENT_PATH, "locale"),
#     ]


# Path: tests/session/test_database_session.py
import unittest
import copy
from webtools.database import Base
from ..settings import TestOverwriteSettings
        from webtools.application import Application





class DatabaseSessionTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):

        cls.app = Application(TestOverwriteSettings())
        Base.metadata.create_all(cls.app.engine)

    @classmethod
    def tearDownClass(cls):

        Base.metadata.drop_all(cls.app.engine)