Skip to content

Commit

Permalink
Add get_branch() to mock repo response in manage unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smkent committed Jul 9, 2024
1 parent b4dd69d commit c3a564f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_manage_cookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def mock_pygithub(new_cookie: Path) -> Iterator[MagicMock]:
)
],
),
get_branch=lambda name: SimpleNamespace(name=name),
get_latest_release=lambda: SimpleNamespace(title="v1.1.38"),
)
yield obj
Expand Down

0 comments on commit c3a564f

Please sign in to comment.