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

Unified Diff: appengine/chromium_cq_status/handlers/test/builder_timeline_data_test.py

Issue 2056663002: Removed timeline code (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 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/chromium_cq_status/handlers/test/builder_timeline_data_test.py
diff --git a/appengine/chromium_cq_status/handlers/test/builder_timeline_data_test.py b/appengine/chromium_cq_status/handlers/test/builder_timeline_data_test.py
deleted file mode 100644
index 582fefaecca20ffda9f616e5cf5a2fe1404e2099..0000000000000000000000000000000000000000
--- a/appengine/chromium_cq_status/handlers/test/builder_timeline_data_test.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import json
-import main
-
-from third_party.testing_utils import testing
-from handlers.builder_timeline_data import create_events
-
-class BuilderTimelineDataTest(testing.AppengineTestCase):
- app_module = main.app
-
- def test_simple_data(self):
- data = load_json('builder_simple.json')
- master = 'tryserver'
- builder = 'test builder'
- buildId = 1
- attempt_string = 'Attempt 1'
- events = create_events(data, master, builder, buildId, attempt_string)
- bCount = 0
- eCount = 0
- for event in events:
- self.assertEqual(master, event.cat)
- self.assertEqual(builder, event.tid)
- self.assertEqual(attempt_string, event.pid)
- self.assertEqual(buildId, event.args['id'])
- if event.ph == 'B':
- bCount += 1
- if event.ph == 'E':
- eCount += 1
- self.assertEqual(bCount, eCount)
-
-def load_json(filename):
- path = os.path.join(os.path.dirname(__file__), 'resources', filename)
- return json.loads(open(path).read())

Powered by Google App Engine
This is Rietveld 408576698