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

Unified Diff: appengine/test_results/test/jsonresults_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
Index: appengine/test_results/test/jsonresults_test.py
diff --git a/appengine/test_results/test/jsonresults_unittest.py b/appengine/test_results/test/jsonresults_test.py
similarity index 98%
rename from appengine/test_results/test/jsonresults_unittest.py
rename to appengine/test_results/test/jsonresults_test.py
index 662fb0842649a99f7ea3d4f6cf92200d3818ab82..25cbf33960f6ee7c0fde3890e94b44ca399b1eef 100644
--- a/appengine/test_results/test/jsonresults_unittest.py
+++ b/appengine/test_results/test/jsonresults_test.py
@@ -31,24 +31,27 @@
import json
import logging
+import os
import unittest
-from appengine.test_results.model import jsonresults
-from appengine.test_results.model.jsonresults import (
- JsonResults,
- TEXT,
- FAIL,
- LEAK,
- PASS,
- TIMEOUT,
- IMAGE,
- NO_DATA,
- IMAGE_PLUS_TEXT,
- CRASH,
- NOTRUN,
- TestFile,
-)
-from appengine.test_results.handlers import master_config
+from appengine.path_mangler_hack import PathMangler
+with PathMangler(os.path.dirname(os.path.dirname(__file__))):
+ from appengine.test_results.model import jsonresults
+ from appengine.test_results.model.jsonresults import (
+ JsonResults,
+ TEXT,
+ FAIL,
+ LEAK,
+ PASS,
+ TIMEOUT,
+ IMAGE,
+ NO_DATA,
+ IMAGE_PLUS_TEXT,
+ CRASH,
+ NOTRUN,
+ TestFile,
+ )
+ from appengine.test_results.handlers import master_config
from google.appengine.ext import testbed
« no previous file with comments | « appengine/test_results/test/buildershandler_test.py ('k') | appengine/test_results/test/jsonresults_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698