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

Unified Diff: appengine/test_results/test/testfilehandler_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/test_results/test/testfile_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/test_results/test/testfilehandler_test.py
diff --git a/appengine/test_results/test/testfilehandler_test.py b/appengine/test_results/test/testfilehandler_test.py
index 740e8b912e8adefad448a278c73f5954fab65852..b2a0aaa33f16bc3118243494b8fc1f917ffcc796 100755
--- a/appengine/test_results/test/testfilehandler_test.py
+++ b/appengine/test_results/test/testfilehandler_test.py
@@ -4,14 +4,18 @@
import collections
import json
+import os
from appengine.utils import testing
-from appengine.test_results import main
-from appengine.test_results.handlers import master_config
-from appengine.test_results.handlers import testfilehandler
-from appengine.test_results.model.jsonresults import (
- JSON_RESULTS_HIERARCHICAL_VERSION
-)
+
+from appengine.path_mangler_hack import PathMangler
+with PathMangler(os.path.dirname(os.path.dirname(__file__))):
+ from appengine.test_results import main
+ from appengine.test_results.handlers import master_config
+ from appengine.test_results.handlers import testfilehandler
+ from appengine.test_results.model.jsonresults import (
+ JSON_RESULTS_HIERARCHICAL_VERSION
+ )
class TestFileHandlerTest(testing.AppengineTestCase):
« no previous file with comments | « appengine/test_results/test/testfile_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698