Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: GithubException now accepts also headers #1070

Merged

Commits on Apr 28, 2021

  1. tests: GithubException now accepts also headers

    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
    
    This is implemented with inspect.signature so our tests work for both
    versions of pygithub <1.55 and >=1.55 because 1.55 is not in stable
    Fedora yet.
    
    Kudos @lbarcziova
    
    Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
    
    Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
    TomasTomecek committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    3189283 View commit details
    Browse the repository at this point in the history