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

Unified Diff: appengine/chromium_cq_status/tests/query_test.py

Issue 499103002: Make test_results deployable again. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: merge to ToT Created 6 years, 4 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 | « appengine/chromium_cq_status/tests/post_test.py ('k') | appengine/chromium_cq_status/tests/utils_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/chromium_cq_status/tests/query_test.py
diff --git a/appengine/chromium_cq_status/tests/query_test.py b/appengine/chromium_cq_status/tests/query_test.py
index c51d141ec730740c76262639be8d0ab9b9f2268c..b927957f0fe5ad181c2f2c454cec7f382192132c 100644
--- a/appengine/chromium_cq_status/tests/query_test.py
+++ b/appengine/chromium_cq_status/tests/query_test.py
@@ -5,14 +5,13 @@
from datetime import datetime
import json
import os
-import sys
-
-# App Engine source file imports must be relative to their app's root.
-sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from appengine.utils import testing
-from appengine.chromium_cq_status import main
-from appengine.chromium_cq_status.model.record import Record
+
+from appengine.path_mangler_hack import PathMangler
+with PathMangler(os.path.dirname(os.path.dirname(__file__))):
+ from appengine.chromium_cq_status import main
+ from appengine.chromium_cq_status.model.record import Record
class TestQuery(testing.AppengineTestCase):
app_module = main.app
« no previous file with comments | « appengine/chromium_cq_status/tests/post_test.py ('k') | appengine/chromium_cq_status/tests/utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698