Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd deployment merge request api #1098
Conversation
c1d3160
to
e061934
|
Hi @ludwig-weiss. Thanks for your MR! Would you mind to add a couple of tests and some docs? |
Not at all, but I was unsure what and how to test. Could you point me to an example? |
|
I guess the tests are going through a little transition phase right now, regarding their structure. Sorry! But you can just add tests similar to this: https://github.com/python-gitlab/python-gitlab/blob/master/gitlab/tests/objects/test_projects.py. Thanks |
|
I am not a python/python tests pro. The example seems too broad to me. Is there a test for e.g ProjectPipelineJobManager https://github.com/python-gitlab/python-gitlab/blob/master/gitlab/v4/objects.py#L3651 This seems similar to the classes I added. When I try to figure what to test for this GET only API I come to this:
For this simple GET API I am under the impression that we would test the mock only. |
|
Yes it does test the mock only, but the functional tests alone are kind of unreliable. |
Hi,
I added the https://docs.gitlab.com/ee/api/deployments.html#list-of-merge-requests-associated-with-a-deployment API to
objects.py.Fixes #995
Cheers
Ludwig