- Notifications
You must be signed in to change notification settings - Fork673
Closed
Description
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
Labels
No labels