summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_gitlab.py
Commit message (Collapse)AuthorAgeFilesLines
* chore: move 'gitlab/tests/' dir to 'tests/unit/'John L. Villalovos2021-05-261-153/+0
| | | | | Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the tests located under the 'tests/' directory.
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-1/+0
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* chore: fix E741/E742 errors reported by flake8John L. Villalovos2021-04-181-4/+4
| | | | | | | | | Fixes to resolve errors for: https://www.flake8rules.com/rules/E741.html Do not use variables named 'I', 'O', or 'l' (E741) https://www.flake8rules.com/rules/E742.html Do not define classes named 'I', 'O', or 'l' (E742)
* test(api,cli): add tests for custom user agentNejc Habjan2021-01-311-1/+14
|
* refactor: split unit tests by GitLab API resourcesNejc Habjan2020-08-221-921/+101
|
* chore: run unittest2pytest on all unit testsNejc Habjan2020-08-221-166/+169
|
* Merge pull request #1052 from machine424/deploy-tokens-supportMax Wittig2020-04-071-0/+34
|\ | | | | feat(api): add support for Gitlab Deploy Token API
| * feat(api): add support for Gitlab Deploy Token APIayoub mrini2020-04-061-0/+34
| |
* | test(api): add tests for group export/import APINejc Habjan2020-04-051-17/+0
|/
* test: create separate module for commit testsNejc Habjan2020-03-221-44/+0
|
* chore: move test_import_github into TestProjectImportNejc Habjan2020-03-181-27/+0
|
* feat(api): add support for GitLab OAuth Applications APIMateusz Filipowicz2020-03-011-0/+27
|
* Merge pull request #1026 from nejch/feat/user-membershipsMax Wittig2020-02-241-0/+32
|\ | | | | feat: add support for user memberships API (#1009)
| * feat: add support for user memberships API (#1009)Nejc Habjan2020-02-221-0/+32
| |
* | test: add unit tests for base URLs with trailing slashesNejc Habjan2020-02-231-0/+17
|/
* test: remove duplicate resp_get_projectNejc Habjan2020-02-191-9/+1
|
* test: use lazy object in unit testsNejc Habjan2020-02-191-1/+1
|
* test: add unit tests for revert commit APINejc Habjan2020-02-191-0/+52
|
* feat: add support for /import/githubAndrew Tergis2019-12-161-0/+27
| | | | | | | | | | | | | | | | | | | Addresses python-gitlab/python-gitlab#952 This adds a method to the `ProjectManager` called `import_github`, which maps to the `/import/github` API endpoint. Calling `import_github` will trigger an import operation from <repo_id> into <target_namespace>, using <personal_access_token> to authenticate against github. In practice a gitlab server may take many 10's of seconds to respond to this API call, so we also take the liberty of increasing the default timeout (only for this method invocation). Unfortunately since `import` is a protected keyword in python, I was unable to follow the endpoint structure with the manager namespace. I'm open to suggestions on a more sensible interface. I'm successfully using this addition to batch-import hundreds of github repositories into gitlab.
* test: added tests for statisticsMitar2019-12-121-0/+56
|
* test: test that all is ignored, when as_list=Falsefix/as_listMax Wittig2019-12-081-0/+18
|
* feat: add users activate, deactivate functionalityMax Wittig2019-10-251-0/+25
| | | | These were introduced in GitLab 12.4
* feat: add deployment creationfeat/deployment-createMax Wittig2019-10-241-0/+44
| | | | | | Added in GitLab 12.4 Fixes #917
* feat(test): unused unittest2, type -> isinstanceCyril Jouve2019-10-131-18/+12
|
* Merge pull request #904 from jouve/remove-cred-authMax Wittig2019-10-131-62/+1
|\ | | | | remove deprecated session auth
| * feat(auth): remove deprecated session authCyril Jouve2019-10-121-62/+1
| |
* | test: remove warning about open files from test_todo()Derek Schrock2019-10-121-4/+5
|/ | | | | | When running unittests python warns that the json file from test_todo() was still open. Use with to open, read, and create encoded json data that is used by resp_get_todo().
* test(submodules): correct test methodfeat/update_submoduleMax Wittig2019-10-061-4/+4
|
* feat(project): implement update_submoduleSebastian Kratzert2019-10-061-0/+50
|
* test(todo): add unittestsMax Wittig2019-09-081-0/+46
|
* style: format with blackMax Wittig2019-09-071-3/+1
|
* test(status): add user status testMax Wittig2019-09-071-10/+31
|
* feat: add support for job tokenMathieu Parent2019-09-061-1/+16
| | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
* feat: add methods to retrieve an individual project environmentTom Forbes2019-08-201-0/+30
|
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-193/+251
|
* Make gitlab.Gitlab.from_config a classmethodjeroen_decroos2019-03-071-0/+32
|
* Revert "make as_list work for all queries"Gauvain Pocentek2018-06-171-60/+7
| | | | | | This reverts commit 8e787612fa77dc945a4c1327e9faa6eee10c48f2. This change broke the basic generator usage (Fixes #534)
* make as_list work for all queriesCyril Jouve2018-06-071-7/+60
|
* silence logs/warnings in unittestsCyril Jouve2018-06-071-1/+1
|
* Drop GetFromListMixinGauvain Pocentek2018-05-191-3/+3
|
* Drop API v3 supportGauvain Pocentek2018-05-191-602/+13
| | | | Drop the code, the tests, and update the documentation.
* Default to API v4Gauvain Pocentek2018-02-051-3/+3
|
* Add missing mocking on unit testGauvain Pocentek2017-11-101-1/+11
|
* Rework authentication args handlingGauvain Pocentek2017-11-101-0/+49
| | | | | | | | * Raise exceptions when conflicting arguments are used * Build the auth headers when instanciating Gitlab, not on each request * Enable anonymous Gitlab objects (#364) Add docs and unit tests
* Module's base objects serialization (#359)Lyudmil Nenov2017-11-031-0/+9
| | | | | | | | Make gitlab objects serializable With current implementation of API v3 and v4 support, some instances have properties of type module and are not serializable. Handle these properties manually with setstate and getstate methods.
* Pagination generators: expose more informationGauvain Pocentek2017-11-011-0/+6
| | | | | | | Expose the X-* pagination attributes returned by the Gitlab server when requesting lists. Closes #304
* Update tests for list() changesGauvain Pocentek2017-08-041-3/+8
|
* Basic test for GitlabListGauvain Pocentek2017-06-051-1/+47
|
* Tests and fixes for the http_* methodsGauvain Pocentek2017-06-021-0/+220
|
* Deprecate parameter related methods in gitlab.GitlabGauvain Pocentek2017-05-241-25/+8
| | | | | | | | These methods change the auth information and URL, and might have some unwanted side effects. Users should create a new Gitlab instance to change the URL and authentication information.