Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
__init__.py
Go to the documentation of this file.
1 from pyramid import testing
2 from pyramid.paster import get_appsettings
3 from unittest import TestCase
4 from wowf.config import globalize_settings
5 from wowf.models import DBSession, initialize_db
6 
7 
8 settings = get_appsettings('development.ini')
9 settings['sqlalchemy.url'] = 'sqlite:///:memory:'
10 
11 # Some features rely on global settings
12 globalize_settings(settings)
13 
14 
15 class BaseUnitTestCase(TestCase):
16 
17  def setUp(self):
18  self.config = testing.setUp()
19  initialize_db(settings)
20  self.setup_db()
21 
22  def tearDown(self):
23  DBSession.remove()
24  testing.tearDown()
25 
26  def setup_db(self):
27  pass
28