Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unit test failing: tests/unit/test_config.py::test_env_config_not_defined_does_not_raise #1764

Copy link
Copy link
@JohnVillalovos

Description

@JohnVillalovos
Issue body actions

Unit test appears to be picking up local file.


mock_clean_env = None

    def test_env_config_not_defined_does_not_raise(mock_clean_env):
>       assert config._get_config_files() == []
E       AssertionError: assert ['/home/jlvil...n-gitlab.cfg'] == []
E         Left contains one more item: '/home/jlvillal/.python-gitlab.cfg'
E         Full diff:
E         - []
E         + ['/home/jlvillal/.python-gitlab.cfg']

tests/unit/test_config.py:130: AssertionError
=============================================================================================================================== short test summary info ===============================================================================================================================
FAILED tests/unit/test_config.py::test_env_config_not_defined_does_not_raise - AssertionError: assert ['/home/jlvil...n-gitlab.cfg'] == []
====================================================================================================================== 1 failed, 687 passed, 33 skipped in 2.12s ======================================================================================================================
ERROR: InvocationError for command /home/jlvillal/sources/github-mine/python-gitlab/.tox/py310/bin/pytest tests/unit tests/meta -v (exited with code 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.