]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
add an email to testing data so that email notifications can be tested
authorScott Torborg <scott@crookedmedia.com>
Sun, 8 Nov 2009 00:38:05 +0000 (14:38 -1000)
committerScott Torborg <scott@crookedmedia.com>
Sun, 8 Nov 2009 00:38:05 +0000 (14:38 -1000)
bluechips/tests/__init__.py
test.ini

index f31ec7dff32eada2d5edc7aee772be4e3301ebb8..8ce9e3dacbaef9d6656f29ca37e374d04bc12f16 100644 (file)
@@ -31,11 +31,14 @@ def setUpPackage():
     # Invoke websetup with the current config file
     SetupCommand('setup-app').run([config['__file__']])
     
-    meta.Session.add(bluechips.model.User(u'root', u'Charlie Root', True))
-    meta.Session.add(bluechips.model.User(u'ben', u'Ben Bitdiddle', True))
-    meta.Session.add(bluechips.model.User(u'gotta', u'Gotta Lisp', True))
-    meta.Session.add(bluechips.model.User(u'rich', u'Rich Scheme', True))
+    u1 = bluechips.model.User(u'root', u'Charlie Root', True)
+    u1.email = u'charlie@example.com'
+    u2 = bluechips.model.User(u'ben', u'Ben Bitdiddle', True)
+    u3 = bluechips.model.User(u'gotta', u'Gotta Lisp', True)
+    u4 = bluechips.model.User(u'rich', u'Rich Scheme', True)
 
+    for u in (u1, u2, u3, u4):
+        meta.Session.add(u)
     meta.Session.commit()
 
 def tearDownPackage():
index 877fca5102b34e1ad5fd8ac92663934da1f87592..478036013216e0ef850c16b1c38198a815f72af0 100644 (file)
--- a/test.ini
+++ b/test.ini
@@ -23,5 +23,6 @@ beaker.session.key = bluechips
 beaker.session.secret = somesecret
 
 fake_username = root
+testing = true
 
 sqlalchemy.url = sqlite://