Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

py_functional_tests are broken? #486

Closed
@max-wittig

Description

@max-wittig

Description of the problem, including code/CLI snippet

Running this in a python3 venv

# run the python API tests:./tools/py_functional_tests.sh

yields the following error

TypeError:'cmp'isaninvalidkeywordargumentforthisfunction

Even when using the old python2, tests fail, because of many reasons

Traceback (mostrecentcalllast):File"./tools/python_test_v4.py",line129,in<module>email=new_user.emails.create({'email':'foo2@bar.com'})File"/home/projects/python-gitlab/gitlab/exceptions.py",line253,inwrapped_fraiseerror(e.error_message,e.response_code,e.response_body)gitlab.exceptions.GitlabCreateError:500:500InternalServerError
Traceback (mostrecentcalllast):File"./tools/python_test_v4.py",line145,in<module>    {'name':'token1','scopes': ['api','read_user']})File"/home/projects/python-gitlab/gitlab/exceptions.py",line253,inwrapped_fraiseerror(e.error_message,e.response_code,e.response_body)gitlab.exceptions.GitlabCreateError:400: {"error":"scopes is invalid"}ERROR:'python ./tools/python_test_v4.py'failed
Traceback (mostrecentcalllast):File"./tools/python_test_v4.py",line148,in<module>mail=gl.user.emails.create({'email':'current@user.com'})File"/home/projects/python-gitlab/gitlab/exceptions.py",line253,inwrapped_fraiseerror(e.error_message,e.response_code,e.response_body)gitlab.exceptions.GitlabCreateError:500:500InternalServerErrorERROR:'python ./tools/python_test_v4.py'failed

....

Are these tests maintained or what am I doing wrong here?

Expected Behavior

Tests run through for the latest master

Actual Behavior

See above

Specifications

  • python-gitlab version: latest master (1.3.0+)
  • API version you are using (v3/v4): v3+v4
  • Gitlab server version (or gitlab.com): localhost (tests)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp