summaryrefslogtreecommitdiff
path: root/tests/unit/test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* test: use false instead of /usr/bin/falseAndrey Skvortsov2022-10-171-2/+2
| | | | | | | | On Debian systems false is located at /bin/false (coreutils package). This fixes unit test failure on Debian system: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/false' /usr/lib/python3.10/subprocess.py:1845: FileNotFoundError
* chore: consolidate license and authorsNejc Habjan2022-08-041-17/+0
|
* chore: make code PEP597 compliantJohn L. Villalovos2022-07-281-1/+2
| | | | | | Use `encoding="utf-8"` in `open()` and open-like functions. https://peps.python.org/pep-0597/
* test: always ensure clean config environmentNejc Habjan2022-07-261-8/+9
|
* test(gitlab): increase unit test coverageNejc Habjan2022-05-291-4/+62
|
* feat(cli): allow options from args and environment variablesNejc Habjan2022-01-021-1/+1
| | | | | | | | BREAKING-CHANGE: The gitlab CLI will now accept CLI arguments and environment variables for its global options in addition to configuration file options. This may change behavior for some workflows such as running inside GitLab CI and with certain environment variables configured.
* chore: fix unit test if config file exists locallyjlvillal/unit_test_configJohn L. Villalovos2021-12-191-2/+4
| | | | Closes #1764
* feat(cli): do not require config file to run CLIfeat/cli-without-config-fileNejc Habjan2021-12-131-52/+88
| | | | | | | | | | | BREAKING CHANGE: A config file is no longer needed to run the CLI. python-gitlab will default to https://gitlab.com with no authentication if there is no config file provided. python-gitlab will now also only look for configuration in the provided PYTHON_GITLAB_CFG path, instead of merging it with user- and system-wide config files. If the environment variable is defined and the file cannot be opened, python-gitlab will now explicitly fail.
* chore: add running unit tests on windows/macosJohn L. Villalovos2021-12-071-0/+2
| | | | | Add running the unit tests on windows-latest and macos-latest with Python 3.10.
* chore: use constants from gitlab.const moduleJohn L. Villalovos2021-11-301-2/+3
| | | | | Have code use constants from the gitlab.const module instead of from the top-level gitlab module.
* test(cli): improve basic CLI coveragetest/cli-coverageNejc Habjan2021-11-271-1/+1
|
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-20/+13
|
* feat: allow global retry_transient_errors setupKarun Japhet2021-08-291-0/+70
| | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added.
* chore: move 'gitlab/tests/' dir to 'tests/unit/'John L. Villalovos2021-05-261-0/+247
Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the tests located under the 'tests/' directory.