Skip to content

Commit c3a564f

Browse files
committed
Add get_branch() to mock repo response in manage unit tests
1 parent b4dd69d commit c3a564f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_manage_cookie.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def mock_pygithub(new_cookie: Path) -> Iterator[MagicMock]:
7979
)
8080
],
8181
),
82+
get_branch=lambda name: SimpleNamespace(name=name),
8283
get_latest_release=lambda: SimpleNamespace(title="v1.1.38"),
8384
)
8485
yield obj

0 commit comments

Comments
 (0)