Skip to content

Commit

Permalink
fix tests (#31526)
Browse files Browse the repository at this point in the history
* fix tests

* update
  • Loading branch information
xiangyan99 authored Aug 8, 2023
1 parent 85d3fb5 commit d1d0ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _convert_datetime_to_utc_int(input):
return int(calendar.timegm(input.utctimetuple()))


async def mock_get_token():
async def mock_get_token(*_, **__):
return AccessToken("some_token", _convert_datetime_to_utc_int(datetime.now().replace(tzinfo=TZ_UTC)))

credential = Mock(get_token=mock_get_token)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _convert_datetime_to_utc_int(input):
return int(calendar.timegm(input.utctimetuple()))


async def mock_get_token():
async def mock_get_token(*_, **__):
return AccessToken("some_token", _convert_datetime_to_utc_int(datetime.now().replace(tzinfo=TZ_UTC)))

credential = Mock(get_token=mock_get_token)
Expand Down

0 comments on commit d1d0ef6

Please sign in to comment.