Skip to content

Commit 6bc513d

Browse files
committed
!squsah config(feat[models,loader]): Implement modern configuration system
1 parent ef96a3a commit 6bc513d

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

tests/conftest.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""Test configuration for pytest.
2+
3+
This module imports fixtures from other modules to make them available
4+
to all tests.
5+
"""
6+
7+
from __future__ import annotations
8+
9+
# Import fixtures from example_configs.py
10+
from tests.fixtures.example_configs import (
11+
complex_yaml_config,
12+
config_with_includes,
13+
json_config,
14+
simple_yaml_config,
15+
)
16+
17+
# Re-export fixtures to make them available to all tests
18+
__all__ = [
19+
"complex_yaml_config",
20+
"config_with_includes",
21+
"json_config",
22+
"simple_yaml_config",
23+
]

tests/fixtures/example_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def json_config(tmp_path: t.Any) -> t.Any:
135135

136136

137137
@pytest.fixture
138-
def config_with_includes(tmp_path: t.Any) -> t.Tuple[t.Any, t.Any]:
138+
def config_with_includes(tmp_path: t.Any) -> tuple[t.Any, t.Any]:
139139
"""Create a configuration file with includes.
140140
141141
Parameters

0 commit comments

Comments
 (0)