Home
last modified time | relevance | path

Searched refs:mock_time (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py105 def test_every_secs(self, mock_time): argument
106 mock_time.return_value = MOCK_START_TIME
114 mock_time.return_value += 1.0
325 def _validate_print_every_n_secs(self, sess, at_end, mock_time): argument
342 mock_time.return_value += 1.0
357 def test_print_every_n_secs(self, mock_time): argument
359 mock_time.return_value = MOCK_START_TIME
360 self._validate_print_every_n_secs(sess, at_end=False, mock_time=mock_time)
362 self._validate_print_every_n_secs(sess, at_end=False, mock_time=mock_time)
365 def test_print_every_n_secs_and_end(self, mock_time): argument
[all …]
Dcheckpoint_management_test.py386 def testSaveRestoreState(self, mock_time): argument
388 mock_time.time.return_value = 3.
394 mock_time.time.return_value = first_time
399 mock_time.time.return_value = second_time
415 mock_time.time.return_value = third_time
424 mock_time.time.return_value = fourth_time
432 mock_time.time.return_value = fifth_time
444 mock_time.time.return_value += 10.
487 def testClockReset(self, mock_time): argument
489 mock_time.time.return_value = 10000.
[all …]
Dsaver_test.py1677 def testNonSharded(self, mock_time): argument
1688 mock_time.time.return_value = start_time
1697 mock_time.time.return_value = start_time + 1.0
/external/python/oauth2client/tests/contrib/
Dtest_locked_file.py116 def test_lock_timeout_error(self, mock_time, mock_logger, mock_open): argument
119 mock_time.side_effect = [0, 10]
131 def test_lock_timeout_error_no_fh(self, mock_time, mock_logger, mock_open): argument
134 mock_time.side_effect = [0, 10]
150 def test_lock_retry_success(self, mock_sleep, mock_time, mock_open): argument
154 mock_time.side_effect = [0, 1]
/external/autotest/server/hosts/
Dcros_repair_unittest.py438 def test_jetstream_tpm_not_owned(self, mock_sleep, mock_time, mock_logging): argument
439 mock_time.side_effect = itertools.count(0, 20)
450 def test_jetstream_tpm_not_ready(self, mock_sleep, mock_time, mock_logging): argument
451 mock_time.side_effect = itertools.count(0, 20)
465 def test_jetstream_cryptohome_missing(self, mock_sleep, mock_time, argument
467 mock_time.side_effect = itertools.count(0, 20)
/external/toolchain-utils/llvm_tools/
Dauto_llvm_bisection_unittest.py202 mock_outside_chroot, mock_time, mock_update_tryjobs): argument
213 mock_time.side_effect = MockTimePassed
230 self.assertEqual(mock_time.call_count, 3)
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper_test.py179 mock_time = mock.MagicMock(side_effect=time_side_effect)
186 mock.patch('time.time', new=mock_time),
/external/toolchain-utils/crosperf/
Dexperiment_runner_unittest.py149 mock_time): argument
155 mock_time.side_effect = range(1, 50, 1)