Home
last modified time | relevance | path

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

1234

/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/perfetto/infra/ci/
Dcommon_utils.py102 def utc_now_iso(utcnow=None): argument
103 return (utcnow or datetime.utcnow()).strftime(r'%Y-%m-%dT%H:%M:%SZ')
/external/python/cryptography/tests/x509/
Dtest_ocsp.py231 time = datetime.datetime.utcnow()
334 current_time = datetime.datetime.utcnow().replace(microsecond=0)
348 current_time = datetime.datetime.utcnow().replace(microsecond=0)
364 current_time = datetime.datetime.utcnow().replace(microsecond=0)
392 current_time = datetime.datetime.utcnow().replace(microsecond=0)
416 current_time = datetime.datetime.utcnow().replace(microsecond=0)
434 current_time = datetime.datetime.utcnow().replace(microsecond=0)
457 current_time = datetime.datetime.utcnow().replace(microsecond=0)
482 current_time = datetime.datetime.utcnow().replace(microsecond=0)
504 current_time = datetime.datetime.utcnow().replace(microsecond=0)
[all …]
/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()
/external/autotest/client/site_tests/autoupdate_EOL/
Dautoupdate_EOL.py63 now = datetime.datetime.utcnow()
87 if expected_eol_date <= datetime.datetime.utcnow():
Dcontrol.approaching_eol24 eol_date=(datetime.datetime.utcnow()
Dcontrol.future_eol24 eol_date=(datetime.datetime.utcnow()
/external/skia/infra/bots/
Dutils.py32 self._start = datetime.datetime.utcnow()
36 finish = datetime.datetime.utcnow()
/external/skqp/infra/bots/
Dutils.py30 self._start = datetime.datetime.utcnow()
34 finish = datetime.datetime.utcnow()
/external/llvm-project/lld/utils/
Dbenchmark.py118 start = datetime.datetime.utcnow().isoformat()
120 end = datetime.datetime.utcnow().isoformat()
/external/perfetto/infra/ci/controller/
Dcontroller.py134 date_limit = (datetime.utcnow() - timedelta(days=1)).strftime('%Y-%m-%d')
172 timestamp = (now or datetime.utcnow()).strftime('%Y%m%d%H%M%S')
275 age_sec = (datetime.utcnow() - t_queued).total_seconds()
383 now = 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/llvm-project/clang/utils/CIndex/
Dcompletion_logger_server.py34 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
/external/skia/infra/bots/recipes/
Dupload_nano_results.py24 now = api.time.utcnow()
Dupload_buildstats_results.py24 now = api.time.utcnow()
/external/skqp/infra/bots/recipes/
Dupload_nano_results.py23 now = api.time.utcnow()
Dupload_buildstats_results.py23 now = api.time.utcnow()
/external/skia/platform_tools/android/tradefed/
Dupload_dm_results.py54 now = datetime.datetime.utcnow()
/external/skia/infra/bots/recipe_modules/gold_upload/
Dapi.py42 now = self.m.time.utcnow()
/external/oss-fuzz/infra/build/functions/
Dbase_images.py106 timestamp = datetime.datetime.utcnow().strftime('%Y%m%d%H%M')
/external/skqp/platform_tools/android/tradefed/
Dupload_dm_results.py54 now = datetime.datetime.utcnow()

1234