summaryrefslogtreecommitdiff
path: root/tests/unit/test_gitlab.py
Commit message (Collapse)AuthorAgeFilesLines
* test: drop httmock dependency in test_gitlab.pytest/drop-httmockNejc Habjan2021-12-301-45/+61
|
* chore: use constants from gitlab.const moduleJohn L. Villalovos2021-11-301-6/+6
| | | | | Have code use constants from the gitlab.const module instead of from the top-level gitlab module.
* refactor: deprecate accessing constants from top-level namespaceJohn L. Villalovos2021-11-301-16/+31
| | | | | | | | | | | | | | We are planning on adding enumerated constants into gitlab/const.py, but if we do that than they will end up being added to the top-level gitlab namespace. We really want to get users to start using `gitlab.const.` to access the constant values in the future. Add the currently defined constants to a list that should not change. Use a module level __getattr__ function so that we can deprecate access to the top-level constants. Add a unit test which verifies we generate a warning when accessing the top-level constants.
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-3/+1
|
* feat: default to gitlab.com if no URL givenNejc Habjan2021-09-081-1/+44
| | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given
* chore: move 'gitlab/tests/' dir to 'tests/unit/'John L. Villalovos2021-05-261-0/+153
Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the tests located under the 'tests/' directory.