~doanac/ubuntu-ci-services-itself/upgrade-support

« back to all changes in this revision

Viewing changes to branch-source-builder/bsbuilder/tests/test_v1.py

  • Committer: Chris Johnston
  • Author(s): Evan Dandrea
  • Date: 2014-03-17 06:33:02 UTC
  • mfrom: (400.1.10 time-sorted-tests)
  • Revision ID: chris_johnston-20140317063302-52wct68d41e6qubs
[r=Andy Doan, Chris Johnston, PS Jenkins bot] Shave two minutes off test execution. Add a small program to print sorted test execution time.  from Evan Dandrea

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        self.app = webtest.TestApp(wsgi.app, relative_to='.')
31
31
 
32
32
    @mock.patch('ci_utils.amqp_utils.get_config')
33
 
    def testStatus(self, get_config):
 
33
    # Don't actually try to talk to a Rabbit server.
 
34
    @mock.patch('urllib2.build_opener')
 
35
    def testStatus(self, build_opener, get_config):
34
36
        get_config.return_value = None
35
37
        resp = self.app.get('/api/v1/status', status=200)
36
38
        data = json.loads(resp.body)