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

Unified Diff: gm/rebaseline_server/results_test.py

Issue 196343009: add schema version to rebaseline_server intermediate JSON (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rename Created 6 years, 9 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 | « gm/rebaseline_server/results.py ('k') | gm/rebaseline_server/static/constants.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/results_test.py
diff --git a/gm/rebaseline_server/results_test.py b/gm/rebaseline_server/results_test.py
index 958222c5166dd714c887491ec52044cbd45bebb1..7cbddefe23e01b91c4f2980b736fe84ec6b0e409 100755
--- a/gm/rebaseline_server/results_test.py
+++ b/gm/rebaseline_server/results_test.py
@@ -35,11 +35,18 @@ class ResultsTest(base_unittest.TestCase):
actuals_root=os.path.join(self._input_dir, 'gm-actuals'),
expected_root=os.path.join(self._input_dir, 'gm-expectations'),
generated_images_root=self._temp_dir)
+ results_obj.get_timestamp = mock_get_timestamp
gm_json.WriteToFile(
- results_obj.get_results_of_type(results.KEY__HEADER__RESULTS_ALL),
+ results_obj.get_packaged_results_of_type(
+ results.KEY__HEADER__RESULTS_ALL),
os.path.join(self._output_dir_actual, 'gm.json'))
+def mock_get_timestamp():
+ """Mock version of Results.get_timestamp() for testing."""
+ return 12345678
+
+
def main():
base_unittest.main(ResultsTest)
« no previous file with comments | « gm/rebaseline_server/results.py ('k') | gm/rebaseline_server/static/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698