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

Side by Side Diff: appengine/findit/common/findit_testcase.py

Issue 2376573004: [Findit] For automatic analyses of flaky tests, run the Swarming tasks off PST peak hours. (Closed)
Patch Set: Fix nit. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | appengine/findit/common/test/time_util_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 from testing_utils import testing 7 from testing_utils import testing
8 8
9 from common import time_util 9 from common import time_util
10 10
(...skipping 20 matching lines...) Expand all
31 def Mocked_run(_, *args, **kwargs): 31 def Mocked_run(_, *args, **kwargs):
32 self.assertEqual(list(args), expected_args) 32 self.assertEqual(list(args), expected_args)
33 self.assertEqual(kwargs, expected_kwargs) 33 self.assertEqual(kwargs, expected_kwargs)
34 return result 34 return result
35 35
36 self.mock(pipeline_class, 'run', Mocked_run) 36 self.mock(pipeline_class, 'run', Mocked_run)
37 37
38 def MockUTCNow(self, mocked_utcnow): 38 def MockUTCNow(self, mocked_utcnow):
39 """Mocks utcnow with the given value for testing.""" 39 """Mocks utcnow with the given value for testing."""
40 self.mock(time_util, 'GetUTCNow', lambda: mocked_utcnow) 40 self.mock(time_util, 'GetUTCNow', lambda: mocked_utcnow)
41
42 def MockUTCNowWithTimezone(self, mocked_utcnow):
43 """Mocks utcnow with the given value for testing."""
44 self.mock(time_util, 'GetUTCNowWithTimezone', lambda: mocked_utcnow)
OLDNEW
« no previous file with comments | « no previous file | appengine/findit/common/test/time_util_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698