Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1451)

Unified Diff: autoupdate_unittest.py

Issue 4087004: Fix unittests since unittests don't actually send a request. (Closed) Base URL: http://git.chromium.org/git/dev-util.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autoupdate_unittest.py
diff --git a/autoupdate_unittest.py b/autoupdate_unittest.py
index 6e0a37628667983ee8909a3f1a8fb696b5a7093a..faeb3000f193165c69670733125b2f79cd2f6ab6 100755
--- a/autoupdate_unittest.py
+++ b/autoupdate_unittest.py
@@ -6,6 +6,7 @@
"""Unit tests for autoupdate.py."""
+import cherrypy
import mox
import os
import socket
@@ -47,6 +48,8 @@ class AutoupdateTest(mox.MoxTestBase):
self.url = 'http://%s/static/update.gz' % self.hostname
self.payload = 'My payload'
self.sha256 = 'SHA LA LA'
+ cherrypy.request.base = 'http://%s' % self.hostname
+
def _DummyAutoupdateConstructor(self):
"""Creates a dummy autoupdater. Used to avoid using constructor."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698