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

Unified Diff: appengine/components/test_support/test_case.py

Issue 2832243002: swarming: mechanical changes to unit tests (Closed)
Patch Set: Disable tx before calling tq Created 3 years, 8 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 | appengine/swarming/handlers_bot_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/test_support/test_case.py
diff --git a/appengine/components/test_support/test_case.py b/appengine/components/test_support/test_case.py
index a6d9ebbde47510aad948babf8ea9665bffe58053..dbece41704fb5eaf6e50da875705840b5c1b603f 100644
--- a/appengine/components/test_support/test_case.py
+++ b/appengine/components/test_support/test_case.py
@@ -152,13 +152,10 @@ class TestCase(auto_stub.TestCase):
headers = dict(task['headers'])
headers['Content-Length'] = str(len(body))
try:
- response = self.app.post(
- task['url'], body, headers=headers, **kwargs)
+ self.app.post(task['url'], body, headers=headers, **kwargs)
except:
logging.error(task)
raise
- # TODO(maruel): Implement task failure.
- self.assertEqual(200, response.status_code)
self._taskqueue_stub.DeleteTask(queue['name'], task['name'])
ran += 1
if not ran:
« no previous file with comments | « no previous file | appengine/swarming/handlers_bot_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698