def setUp(self): super(NewPointsTest, self).setUp() app = webapp2.WSGIApplication([('/new_points', new_points.NewPointsHandler)]) self.testapp = webtest.TestApp(app) self.SetCurrentUser('*****@*****.**', is_admin=True) testing_common.SetInternalDomain('google.com')
def setUp(self): super(FileBugTest, self).setUp() app = webapp2.WSGIApplication([('/file_bug', file_bug.FileBugHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org', 'google.com']) testing_common.SetInternalDomain('google.com') self.SetCurrentUser('*****@*****.**')
def setUp(self): super(EditSiteConfigTest, self).setUp() app = webapp2.WSGIApplication( [('/edit_site_config', edit_site_config.EditSiteConfigHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetInternalDomain('internal.org') self.SetCurrentUser('*****@*****.**', is_admin=True)
def setUp(self): super(GraphJsonTest, self).setUp() app = webapp2.WSGIApplication( [('/graph_json', graph_json.GraphJsonHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetInternalDomain('google.com') self.PatchDatastoreHooksRequest()
def setUp(self): super(ListTestsTest, self).setUp() app = webapp2.WSGIApplication([('/list_tests', list_tests.ListTestsHandler)]) self.testapp = webtest.TestApp(app) datastore_hooks.InstallHooks() self.UnsetCurrentUser() testing_common.SetInternalDomain('google.com')
def setUp(self): super(SetWarningMessageTest, self).setUp() app = webapp2.WSGIApplication([ ('/set_warning_message', set_warning_message.SetWarningMessageHandler) ]) self.testapp = webtest.TestApp(app) testing_common.SetInternalDomain('google.com')
def setUp(self): super(LayeredCacheTest, self).setUp() app = webapp2.WSGIApplication([( '/delete_expired_entities', layered_cache.DeleteExpiredEntitiesHandler)]) self.testapp = webtest.TestApp(app) self.UnsetCurrentUser() testing_common.SetInternalDomain('google.com')
def setUp(self): super(StatsTest, self).setUp() app = webapp2.WSGIApplication([ ('/stats', stats.StatsHandler), ('/stats_around_revision', stats.StatsAroundRevisionHandler), ('/stats_for_alerts', stats.StatsForAlertsHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetInternalDomain('google.com')
def setUp(self): super(DatastoreHooksTest, self).setUp() testing_common.SetInternalDomain('google.com') self._AddDataToDatastore() datastore_hooks.InstallHooks() get_request_patcher = mock.patch( 'webapp2.get_request', mock.MagicMock(return_value=FakeRequest())) self.mock_get_request = get_request_patcher.start() self.addCleanup(get_request_patcher.stop)
def setUp(self): super(CanBisectTest, self).setUp() app = webapp2.WSGIApplication([('/can_bisect', can_bisect.CanBisectHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetInternalDomain('internal.org') self.SetCurrentUser('*****@*****.**') namespaced_stored_object.Set( can_bisect.BISECT_BOT_MAP_KEY, {'SupportedMaster': ['perf_bot', 'bisect_bot']})
def setUp(self): super(FileBugTest, self).setUp() app = webapp2.WSGIApplication([('/file_bug', file_bug.FileBugHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org', 'google.com']) testing_common.SetInternalDomain('google.com') self.SetCurrentUser('*****@*****.**') # When requests are made to the issue tracker service (using the mock # HTTP object in mock_oauth2_decorator), some data is expected, # but not necessarily read. mock_oauth2_decorator.HTTP_MOCK.data = '{"id": 123}'
def setUp(self): super(UtilsTest, self).setUp() testing_common.SetInternalDomain('google.com')
def setUp(self): super(InternalOnlyModelTest, self).setUp() testing_common.SetInternalDomain('google.com')
def setUp(self): super(NamespacedStoredObjectTest, self).setUp() testing_common.SetInternalDomain('google.com')