Skip to content

Commit 0858453

Browse files
committed
Unset YAMLFIX_CONFIG_PATH to prevent stray configuration files from failing tests
1 parent 1f9f1bd commit 0858453

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
"""Store the classes and fixtures used throughout the tests."""
2+
3+
import os
4+
5+
import pytest
6+
7+
8+
@pytest.fixture(autouse=True)
9+
def _unset_yamlfix_config_path() -> None:
10+
"""Unset YAMLFIX_CONFIG_PATH environment variable."""
11+
os.environ.pop("YAMLFIX_CONFIG_PATH", None)

0 commit comments

Comments
 (0)