Skip to content

Commit 66e1f80

Browse files
authored
Merge pull request #39 from arduino/dependabot/pip/compilesketches/pygithub-1.55
Bump pygithub from 1.51 to 1.55 in /compilesketches
2 parents 30f6409 + 77fb9d2 commit 66e1f80

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compilesketches/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
GitPython==3.1.2
2-
PyGithub==1.51
2+
PyGithub==1.55
33
PyYAML==5.4
44
semver==2.13.0

compilesketches/tests/test_compilesketches.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ def get_pull(self, number):
352352
github_api_object.get_repo.assert_called_once_with(full_name_or_id=os.environ["GITHUB_REPOSITORY"])
353353
github_api_object.get_pull.assert_called_once_with(number=42) # PR number is hardcoded into test file
354354

355-
mocker.patch.object(Github, "get_repo", side_effect=github.UnknownObjectException(status=42, data="foo"))
355+
mocker.patch.object(Github,
356+
"get_repo",
357+
side_effect=github.UnknownObjectException(status=42, data="foo", headers=None))
356358
with pytest.raises(expected_exception=SystemExit, match="1"):
357359
compile_sketches.get_pull_request_base_ref()
358360

0 commit comments

Comments
 (0)