Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer's ~/.python-gitlab.cfg affecting functional tests #2704

Open
ericfrederich opened this issue Oct 25, 2023 · 0 comments
Open

Developer's ~/.python-gitlab.cfg affecting functional tests #2704

ericfrederich opened this issue Oct 25, 2023 · 0 comments

Comments

@ericfrederich
Copy link
Contributor

Description of the problem, including code/CLI snippet

When running tox -e cli_func_v4 and you have a ~/.python-gitlab.cfg file as shown below, the tests will fail.

This is one of the causes of the test failures on #2702

[global]
ssl_verify = true
timeout = 60
per_page = 100

[dev]
url = https://dev.example.com
private_token = abcdefghijklmnop
api_version = 4

[prod]
url = https://prod.example.com
private_token = abcdefghijklmnop
api_version = 4

Expected Behavior

Tests should be independent of the testing user's home directory.

Actual Behavior

Tests fail if you choose to not have a default GitLab instance defined.

Specifications

  • python-gitlab version: Current main branch: bf68485
  • API version you are using (v3/v4): N/A
  • Gitlab server version (or gitlab.com): 15.4.0-ee.0 (specified in tests/functional/fixtures/.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant