Skip to content

Conversation

kurtmckee
Copy link
Contributor

This change isolates the test suite from developers' DEFAULT_CONFIG_FILE. It does this by changing the value of the DEFAULT_CONFIG_FILE variable to point to a file named for a randomly-generated UUID.

Fixes #3610

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation


@pytest.fixture(scope="session", autouse=True)
def no_default_config_ini() -> Iterator[None]:
filename = str(uuid4())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use pytest-mock over monkeypatch

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

Successfully merging this pull request may close these issues.

DEFAULT_CONFIG_FILE can cause the tox test suite to fail
2 participants