Skip to content

Commit

Permalink
ci: fix keystone mock call for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Feb 9, 2024
1 parent f9e4ab8 commit 1279013
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/mocklib/keystoneclient/v3/tokens.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from unittest import mock


class TokenManager(mock.Mock):
class TokenManager:
validate = mock.Mock(name='validate')
validate.return_value = {'expires_at': '3022.07.04 00:00 CEST'}

def __init__(self, *argv, **kwarg):
super().__init__(*argv, **kwarg)
self.validate = mock.Mock(name='validate')
self.validate.return_value = {'expires_at': '3022.07.04 00:00 CEST'}
pass

0 comments on commit 1279013

Please sign in to comment.