# Path: src/main.py
# def on_shutdown():
# 
# Path: src/config.py
# APP_DEFAULT_ADMIN_USER = dict(name='admin', email='admin@mydomain.com',
#                               password='needs one!', timezone='US/Pacific',
#                               desc='Real men of genius')


import os
import unittest
import tempfile
from src.main import app, models
from src.config import APP_DEFAULT_ADMIN_USER
# http://flask.pocoo.org/docs/latest/testing/




username = APP_DEFAULT_ADMIN_USER['email']
password = APP_DEFAULT_ADMIN_USER['password']


class TestCase(unittest.TestCase):

    def setUp(self):
        self.db_fd, self.db_path = tempfile.mkstemp()

# Path: src/main.py
# def on_shutdown():
# 
# Path: src/config.py
# APP_DEFAULT_ADMIN_USER = dict(name='admin', email='admin@mydomain.com',
#                               password='needs one!', timezone='US/Pacific',
#                               desc='Real men of genius')


# Path: tests/tests.py
import os
import unittest
import tempfile
from src.main import app, models
from src.config import APP_DEFAULT_ADMIN_USER

# http://flask.pocoo.org/docs/latest/testing/




username = APP_DEFAULT_ADMIN_USER['email']
password = APP_DEFAULT_ADMIN_USER['password']


class TestCase(unittest.TestCase):

    def setUp(self):
        self.db_fd, self.db_path = tempfile.mkstemp()

        app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + self.db_path