Update pagure fake get_project_webhook_token

The fake pagure connection class overrides get_project_webhook_token
but has a different method signature.  Update the signature to match
in order to avoid some exceptions in tests.

Change-Id: I9b1dda8baa23fdad00428217a55c2481b867864a
This commit is contained in:
James E. Blair
2024-07-29 14:31:46 -07:00
parent 111e27123c
commit acf8318872

View File

@@ -375,7 +375,7 @@ class FakePagureConnection(pagureconnection.PagureConnection):
self.set_my_username(client)
return client
def get_project_webhook_token(self, project):
def get_project_webhook_token(self, project, force_refresh=False):
return 'fake_webhook_token-%s' % project
def emitEvent(self, event, use_zuulweb=False, project=None,