# Path: nive_cms/tests/db_app.py
# def app_db(confs=None):
# def app_nodb():
# def emptypool(app):
# def createpool(path,app):
# def root(a):
# def create_page(c, user):
# def create_box(c, user):
# def create_column(c, user):
# def create_file(c, user):
# def create_image(c, user):
# def create_media(c, user):
# def create_note(c, user):
# def create_text(c, user):
# def create_spacer(c, user):
# def create_link(c, user):
# def create_menublock(c, user):
# def create_code(c, user):
# def create_news(c, user):


import sys
import unittest
from nive.definitions import DatabaseConf
from nive_cms.tests import db_app
# These switches also allow to manually enable or disable database system tests.
ENABLE_SQLITE_TESTS = True
ENABLE_MYSQL_TESTS = False
ENABLE_POSTGRES_TESTS = False



if ENABLE_SQLITE_TESTS:

    class SqliteTestCase(unittest.TestCase):
        def _loadApp(self, mods=None):
            if not mods:
                mods = []
            mods.append(DatabaseConf(DB_CONF))
            self.app = db_app.app_db(mods)

else:

    class SqliteTestCase(object):
        def _loadApp(self, mods=None):
            pass


if ENABLE_MYSQL_TESTS:

    class MySqlTestCase(unittest.TestCase):
        def _loadApp(self, mods=None):
            if not mods:
                mods = []
            mods.append(DatabaseConf(MYSQL_CONF))

# Path: nive_cms/tests/db_app.py
# def app_db(confs=None):
# def app_nodb():
# def emptypool(app):
# def createpool(path,app):
# def root(a):
# def create_page(c, user):
# def create_box(c, user):
# def create_column(c, user):
# def create_file(c, user):
# def create_image(c, user):
# def create_media(c, user):
# def create_note(c, user):
# def create_text(c, user):
# def create_spacer(c, user):
# def create_link(c, user):
# def create_menublock(c, user):
# def create_code(c, user):
# def create_news(c, user):


# Path: nive_cms/tests/__local.py
import sys
import unittest
from nive.definitions import DatabaseConf
from nive_cms.tests import db_app

# These switches also allow to manually enable or disable database system tests.
ENABLE_SQLITE_TESTS = True
ENABLE_MYSQL_TESTS = False
ENABLE_POSTGRES_TESTS = False



if ENABLE_SQLITE_TESTS:

    class SqliteTestCase(unittest.TestCase):
        def _loadApp(self, mods=None):
            if not mods:
                mods = []
            mods.append(DatabaseConf(DB_CONF))
            self.app = db_app.app_db(mods)

else:

    class SqliteTestCase(object):
        def _loadApp(self, mods=None):
            pass


if ENABLE_MYSQL_TESTS:

    class MySqlTestCase(unittest.TestCase):
        def _loadApp(self, mods=None):
            if not mods:
                mods = []
            mods.append(DatabaseConf(MYSQL_CONF))

            self.app = db_app.app_db(mods)