Skip to content

Commit

Permalink
Merge branch 'main' into fix/sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jan 16, 2025
2 parents bc2da7f + 7b7460d commit 0abc342
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
from __future__ import annotations

import os
from pathlib import Path
from typing import TYPE_CHECKING
from unittest import mock

import pytest

if TYPE_CHECKING:
from collections.abc import Generator


@pytest.fixture(autouse=True)
def mock_settings_env_vars() -> Generator[None, None, None]:
"""Isolated testing from user's environment."""
with mock.patch.dict(os.environ, {"TOX_USER_CONFIG_FILE": os.devnull}):
yield


@pytest.fixture(scope="session")
def root() -> Path:
Expand Down

0 comments on commit 0abc342

Please sign in to comment.