Skip to content

Commit

Permalink
Add init method to start the mail service.
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezjdaniel committed Feb 6, 2013
1 parent 28c68e0 commit 7874a55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from google.appengine.ext import testbed
from google.appengine.datastore import datastore_stub_util
from google.appengine.api import mail


class Base(unittest.TestCase):
Expand All @@ -16,7 +17,7 @@ def setUp(self):
self.init()
self.addCleanup(self.finish)
self.addCleanup(self.testbed.deactivate)

def init(self):
pass

Expand Down Expand Up @@ -45,6 +46,10 @@ def init_taskqueue(self):
self.testbed.init_taskqueue_stub(root_path='.')
self.taskqueue = self.testbed.get_stub('taskqueue')

def init_mail(self):
self.testbed.init_mail_stub()
self.mail_stub = self.testbed.get_stub(testbed.MAIL_SERVICE_NAME)

def json_request(self, url, data):
r = webapp2.Request.blank(url)
r.method = 'POST'
Expand Down

0 comments on commit 7874a55

Please sign in to comment.