File tree 2 files changed +4
-1
lines changed 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -500,6 +500,8 @@ def test_mint_token_no_pending_publisher_ok(
500
500
publisher = GitHubPublisherFactory ()
501
501
monkeypatch .setattr (publisher .__class__ , "projects" , [project ])
502
502
publisher .publisher_url = pretend .call_recorder (lambda ** kw : "https://fake/url" )
503
+ # NOTE: Can't set __str__ using pretend.stub()
504
+ monkeypatch .setattr (publisher .__class__ , "__str__" , lambda s : "fakespecifier" )
503
505
504
506
def _find_publisher (claims , pending = False ):
505
507
if pending :
@@ -544,7 +546,7 @@ def find_service(iface, **kw):
544
546
assert macaroon_service .create_macaroon .calls == [
545
547
pretend .call (
546
548
"fakedomain" ,
547
- f"OpenID token: example.yml ({ datetime .fromtimestamp (0 ).isoformat ()} )" ,
549
+ f"OpenID token: fakespecifier ({ datetime .fromtimestamp (0 ).isoformat ()} )" ,
548
550
[
549
551
caveats .OIDCPublisher (
550
552
oidc_publisher_id = str (publisher .id ),
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ def reify(self, session):
269
269
Returns a `GitHubPublisher` for this `PendingGitHubPublisher`,
270
270
deleting the `PendingGitHubPublisher` in the process.
271
271
"""
272
+
272
273
maybe_publisher = (
273
274
session .query (GitHubPublisher )
274
275
.filter (
You can’t perform that action at this time.
0 commit comments