Home
last modified time | relevance | path

Searched refs:utcnow (Results 1 – 25 of 57) sorted by relevance

123

/external/python/oauth2client/tests/
Dtest_service_account.py266 def test_access_token(self, utcnow): argument
270 utcnow.return_value = NOW
320 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
337 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
359 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
398 def test_get_access_token_no_claims(self, time, utcnow): argument
399 utcnow.return_value = T1_DATE
413 utcnow.return_value = T2_DATE
423 utcnow.return_value = T3_DATE
436 def test_get_access_token_additional_claims(self, time, utcnow): argument
[all …]
Dtest_file.py67 token_expiry = expiration or datetime.datetime.utcnow()
117 expiration = (datetime.datetime.utcnow() -
140 expiration = (datetime.datetime.utcnow() +
169 expiration = (datetime.datetime.utcnow() +
184 expiration = (datetime.datetime.utcnow() +
Dtest_client.py880 token_expiry = datetime.datetime.utcnow()
1002 token_expiry = str(datetime.datetime.utcnow())
1032 token_expiry = str(datetime.datetime.utcnow())
1067 def test__expires_in_expired(self, utcnow): argument
1070 credentials.token_expiry = datetime.datetime.utcnow()
1073 utcnow.return_value = now
1075 utcnow.assert_called_once_with()
1078 def test__expires_in_not_expired(self, utcnow): argument
1081 credentials.token_expiry = datetime.datetime.utcnow()
1085 utcnow.return_value = now
[all …]
/external/autotest/client/site_tests/cheets_StartAndroid_P/
Dcheets_StartAndroid_P.py50 start = datetime.datetime.utcnow()
54 elapsed_time = (datetime.datetime.utcnow() - start
/external/autotest/client/site_tests/cheets_StartAndroid/
Dcheets_StartAndroid.py50 start = datetime.datetime.utcnow()
54 elapsed_time = (datetime.datetime.utcnow() - start
/external/python/oauth2client/tests/contrib/
Dtest_flask_util.py85 datetime.datetime.utcnow() + datetime.timedelta(seconds=3600),
353 def test_with_expired_credentials(self, utcnow): argument
354 utcnow.return_value = datetime.datetime(1990, 5, 29)
404 with mock.patch('oauth2client.client._UTCNOW') as utcnow:
405 utcnow.return_value = datetime.datetime(1990, 5, 29)
418 with mock.patch('oauth2client.client._UTCNOW') as utcnow:
419 utcnow.return_value = datetime.datetime(1990, 5, 29)
Dtest_devshell.py211 def test_reads_credentials(self, utcnow): argument
213 utcnow.return_value = NOW
222 utcnow.assert_called_once_with()
Dtest_multiprocess_file_storage.py55 datetime.datetime.utcnow() + datetime.timedelta(seconds=3600))
308 datetime.datetime.utcnow() - datetime.timedelta(seconds=3600)))
Dtest_sqlalchemy.py50 token_expiry=datetime.datetime.utcnow(),
/external/skia/infra/bots/
Dutils.py30 self._start = datetime.datetime.utcnow()
34 finish = datetime.datetime.utcnow()
/external/skqp/infra/bots/
Dutils.py30 self._start = datetime.datetime.utcnow()
34 finish = datetime.datetime.utcnow()
/external/flatbuffers/python/
Dsetup.py38 version = datetime.utcnow().strftime('%Y%m%d%H%M%S')
/external/clang/utils/CIndex/
Dcompletion_logger_server.py33 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
/external/skia/infra/bots/recipes/
Dupload_nano_results.py23 now = api.time.utcnow()
Dupload_buildstats_results.py23 now = api.time.utcnow()
Dupload_calmbench_results.py44 now = api.time.utcnow()
Dupload_dm_results.py49 now = api.time.utcnow()
/external/skqp/infra/bots/recipes/
Dupload_buildstats_results.py23 now = api.time.utcnow()
Dupload_nano_results.py23 now = api.time.utcnow()
Dupload_calmbench_results.py44 now = api.time.utcnow()
Dupload_dm_results.py49 now = api.time.utcnow()
/external/skqp/platform_tools/android/tradefed/
Dupload_dm_results.py54 now = datetime.datetime.utcnow()
/external/skia/platform_tools/android/tradefed/
Dupload_dm_results.py54 now = datetime.datetime.utcnow()
/external/autotest/server/cros/dynamic_suite/
Dreporting_unittest.py133 def utcnow(cls): member in NewDatetime
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_storage.py37 token_expiry = datetime.datetime.utcnow()

123