summaryrefslogtreecommitdiff
path: root/tests/functional/api/test_projects.py
Commit message (Collapse)AuthorAgeFilesLines
* chore: add basic type checks to functional/api testsNejc Habjan2022-10-271-1/+1
|
* test(functional): replace len() calls with list membership checksNejc Habjan2022-07-031-31/+35
|
* test: add tests and clean up usage for new enumsNejc Habjan2022-06-271-0/+12
|
* feat(api): support head() method for get and list endpointsNejc Habjan2022-06-251-0/+10
|
* feat(client): introduce `iterator=True` and deprecate `as_list=False` in ↵John L. Villalovos2022-05-291-1/+1
| | | | | | | | | | | `list()` `as_list=False` is confusing as it doesn't explain what is being returned. Replace it with `iterator=True` which more clearly explains to the user that an iterator/generator will be returned. This maintains backward compatibility with `as_list` but does issue a DeprecationWarning if `as_list` is set.
* feat(objects): support get project storage endpointNejc Habjan2022-05-271-0/+7
|
* test(functional): fix GitLab configuration to support paginationJohn L. Villalovos2022-02-051-1/+1
| | | | | | | | | | | | When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We had previously set the GitLab server configuraiton to say its URL was `http://gitlab.test` which is not in DNS. Set the hostname in the URL to `http://127.0.0.1:8080` which is the correct URL for the GitLab server to be accessed while doing functional tests. Closes: #1877
* fix: remove custom `delete` method for labelsJohn L. Villalovos2022-02-011-2/+4
| | | | | | | | | | | | | | The usage of deleting was incorrect according to the current API. Remove custom `delete()` method as not needed. Add tests to show it works with labels needing to be encoded. Also enable the test_group_labels() test function. Previously it was disabled. Add ability to do a `get()` for group labels. Closes: #1867
* style: use f-strings where applicableNejc Habjan2022-01-231-6/+5
|
* style: use literals to declare data structuresNejc Habjan2022-01-231-1/+1
|
* chore(tests): use method `projects.transfer()`jlvillal/catch_warningsJohn L. Villalovos2022-01-131-2/+2
| | | | | | When doing the functional tests use the new function `projects.transfer` instead of the deprecated function `projects.transfer_project()`
* feat(api): add `project.transfer()` and deprecate `transfer_project()`Nejc Habjan2022-01-131-0/+14
|
* feat: add support for `projects.groups.list()`jlvillal/project_groupsJohn L. Villalovos2021-11-261-0/+18
| | | | | | Add support for `projects.groups.list()` endpoint. Closes #1717
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-1/+1
|
* feat(api): add project milestone promotionRaimund Hook2021-10-271-0/+21
| | | | | | Adds promotion to Project Milestones Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
* feat(api): add project label promotionRaimund Hook2021-10-181-0/+24
| | | | | | Adds a mixin that allows the /promote endpoint to be called. Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
* chore: rename `master` branch to `main`chore/master-to-mainNejc Habjan2021-10-111-1/+1
| | | | | BREAKING CHANGE: As of python-gitlab 3.0.0, the default branch for development has changed from `master` to `main`.
* refactor(objects): remove deprecated tag release APINejc Habjan2021-09-081-4/+0
| | | | | BREAKING CHANGE: remove deprecated tag release API. This was removed in GitLab 14.0
* fix: functional project service test (#1500)John Villalovos2021-06-091-0/+5
| | | chore: fix functional project service test
* chore: rename 'tools/functional/' to 'tests/functional/'John L. Villalovos2021-05-261-0/+267
Rename the 'tools/functional/' directory to 'tests/functional/' This makes more sense as these are functional tests and not tools. This was dicussed in: https://github.com/python-gitlab/python-gitlab/discussions/1468