summaryrefslogtreecommitdiff
path: root/gitlab/tests/objects
Commit message (Collapse)AuthorAgeFilesLines
* chore: move 'gitlab/tests/' dir to 'tests/unit/'John L. Villalovos2021-05-2640-4083/+0
| | | | | Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the tests located under the 'tests/' directory.
* feat(objects): add support for billable membersNejc Habjan2021-05-251-0/+58
|
* chore: fix import ordering using isortJohn L. Villalovos2021-05-2516-16/+2
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* fix(objects): return server data in cancel/retry methodsNejc Habjan2021-05-022-0/+192
|
* Merge pull request #1352 from JohnVillalovos/jlvillal/fix_mroNejc Habjan2021-04-271-0/+122
|\ | | | | fix: add a check to ensure the MRO is correct
| * chore: remove commented-out printNejc Habjan2021-04-271-1/+0
| |
| * fix: add a check to ensure the MRO is correctJohn L. Villalovos2021-04-241-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a check to ensure the MRO (Method Resolution Order) is correct for classes in gitlab.v4.objects when doing type-checking. An example of an incorrect definition: class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin): ^^^^^^^^^^ This should be at the end. Correct way would be: class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject): Correctly at the end ^^^^^^^^^^ Also fix classes which have the issue.
* | fix(files): do not url-encode file paths twiceNejc Habjan2021-04-261-0/+49
|/
* Merge pull request #1397 from JohnVillalovos/jlvillal/flake8Max Wittig2021-04-235-16/+12
|\ | | | | Fix all issues reported by running: tox -e pep8 and enable pep8 as a linter check
| * chore: fix F841 errors reported by flake8John L. Villalovos2021-04-181-1/+1
| | | | | | | | | | | | Local variable name is assigned to but never used https://www.flake8rules.com/rules/F841.html
| * chore: fix F401 errors reported by flake8John L. Villalovos2021-04-182-5/+1
| | | | | | | | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
| * chore: fix E712 errors reported by flake8John L. Villalovos2021-04-182-10/+10
| | | | | | | | | | | | E712: Comparison to true should be 'if cond is true:' or 'if cond:' https://www.flake8rules.com/rules/E712.html
* | test(objects): add tests for resource state eventsNejc Habjan2021-04-181-0/+105
|/
* Merge pull request #1375 from JohnVillalovos/jlvillal/update_uses_postNejc Habjan2021-04-171-1/+25
|\ | | | | chore: remove usage of getattr()
| * chore: remove usage of getattr()John L. Villalovos2021-03-151-1/+25
| | | | | | | | | | | | | | | | | | Remove usage of getattr(self, "_update_uses_post", False) Instead add it to class and set default value to False. Add a tests that shows it is set to True for the ProjectMergeRequestApprovalManager and ProjectApprovalManager classes.
* | Merge pull request #1363 from python-gitlab/feat/all-audit-eventsMax Wittig2021-03-241-7/+37
|\ \ | |/ |/| Feat: cover all audit events
| * feat(objects): add support for group audit events APIfeat/all-audit-eventsNejc Habjan2021-03-071-3/+20
| |
| * test(objects): add unit test for instance audit eventsNejc Habjan2021-03-071-5/+18
| |
* | chore: fix package file test namingNejc Habjan2021-03-141-1/+1
| |
* | feat: add ProjectPackageFileJacob Henner2021-03-101-1/+69
|/ | | | | | | Add ProjectPackageFile and the ability to list project package package_files. Fixes #1372
* feat(users): add follow/unfollow APIfeat/user-follow-apiMax Wittig2021-02-271-0/+80
|
* test: don't add duplicate fixtureMax Wittig2021-02-241-26/+0
| | | Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
* feat(projects): add project access token apiMax Wittig2021-02-241-0/+139
|
* feat(objects): add Release Links API supportNejc Habjan2021-02-211-0/+131
|
* chore(tests): remove unused URL segmentNejc Habjan2021-02-201-2/+2
|
* feat: add project audit endpointClayton Walker2021-02-191-0/+79
|
* feat: add personal access token APIfeat/personal-access-token-apiMax Wittig2021-02-171-0/+46
| | | | See: https://docs.gitlab.com/ee/api/personal_access_tokens.html
* feat(issues): add missing get verb to IssueManagerfeat/single-issue-apiNejc Habjan2021-02-061-2/+21
|
* feat: import from bitbucket serverDan Fuchs2021-02-041-0/+38
| | | | | | | | | | | | | I'd like to use this libary to automate importing Bitbucket Server repositories into GitLab. There is a [GitLab API endpoint](https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server) to do this, but it is not exposed through this library. * Add an `import_bitbucket_server` method to the `ProjectManager`. This method calls this GitLab API endpoint: https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server * Modify `import_gitlab` method docstring for python3 compatibility * Add a skipped stub test for the existing `import_github` method
* Merge pull request #1200 from ↵Max Wittig2020-10-291-0/+294
|\ | | | | | | | | robinson96/feature/project_merge_request_approval_rules Feature/project merge request approval rules
| * test: add test_project_merge_request_approvals.pyPeter B. Robinson2020-10-141-0/+294
| |
* | feat: unit tests addedAlex Zirka2020-10-081-0/+111
|/
* Merge pull request #1180 from Shkurupii/add-unittests-for-project-badgesNejc Habjan2020-09-101-0/+210
|\ | | | | test: add unit tests for badges API
| * test: add unit tests for badges APIOleksii Shkurupii2020-09-071-0/+210
| |
* | feat(api): add support for user identity provider deletionfeat/delete-user-identitiesNejc Habjan2020-09-071-0/+17
| |
* | test: add unit tests for resource label events APIOleksii Shkurupii2020-09-041-0/+105
|/
* test(api): add tests for variables APINejc Habjan2020-08-311-0/+193
|
* Merge pull request #1157 from Shkurupii/issue-1154Max Wittig2020-08-291-0/+73
|\ | | | | Add support to resource milestone events
| * chore: make latest black happy with existing codeOleksii Shkurupii2020-08-292-4/+16
| |
| * test: add unit tests for resource milestone events APIOleksii Shkurupii2020-08-281-0/+73
| | | | | | | | Fixes #1154
* | Merge pull request #1159 from python-gitlab/feat/project-artifactsMax Wittig2020-08-291-0/+31
|\ \ | | | | | | Feat: Project job artifacts for latest successful pipeline
| * | chore: remove unnecessary importNejc Habjan2020-08-281-2/+0
| | |
| * | feat(api): add endpoint for latest ref artifactsNejc Habjan2020-08-281-0/+33
| | |
| * | chore: make latest black happy with existing codeNejc Habjan2020-08-282-4/+16
| |/
* | test(packages): add tests for Packages APINejc Habjan2020-08-292-0/+124
| |
* | chore: make latest black happy with existing codeNejc Habjan2020-08-292-4/+16
|/
* refactor: rewrite unit tests for objects with responsesrefactor/split-unit-testsNejc Habjan2020-08-2323-937/+898
|
* refactor: split unit tests by GitLab API resourcesNejc Habjan2020-08-2218-750/+1379
|
* chore: run unittest2pytest on all unit testsNejc Habjan2020-08-224-60/+60
|
* test(runners): add all runners unit testsfeat/group-runnersMax Wittig2020-05-161-0/+277
|