Skip to content

Commit

Permalink
tests: GithubException now accepts also headers
Browse files Browse the repository at this point in the history
We need to update how we mock GithubException since 1.55 it now accepts
HTTP headers in form of a positional argument as well:

PyGithub/PyGithub#1887

Kudos @lbarcziova

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
  • Loading branch information
TomasTomecek committed Apr 28, 2021
1 parent 8660647 commit bc6c348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_reporting.py
Expand Up @@ -170,7 +170,7 @@ def test_set_status_gitlab(
"We made it!",
"packit/pr-rpm-build",
"https://api.packit.dev/build/111/logs",
(github.GithubException, (None, None), dict()),
(github.GithubException, (None, None, None), dict()),
id="GitHub PR",
),
pytest.param(
Expand Down

0 comments on commit bc6c348

Please sign in to comment.