mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 18:43:58 +03:00
Refactor naming in configuration fixtures
This commit is contained in:
parent
df8f1f10a9
commit
a7ca9e08ae
|
@ -52,14 +52,14 @@ def ini_config_file_2(tmp_path):
|
|||
|
||||
@fixture
|
||||
def ini_config_file_3(tmp_path):
|
||||
ini_config_file_3 = str(tmp_path / "config_3.ini")
|
||||
with open(ini_config_file_3, "w") as file:
|
||||
config_file = str(tmp_path / "config_3.ini")
|
||||
with open(config_file, "w") as file:
|
||||
file.write(
|
||||
"[section1]\n"
|
||||
"value1=${CONFIG_TEST_ENV}\n"
|
||||
"value2=${CONFIG_TEST_PATH}/path\n"
|
||||
)
|
||||
return ini_config_file_3
|
||||
return config_file
|
||||
|
||||
|
||||
@fixture
|
||||
|
@ -92,14 +92,14 @@ def yaml_config_file_2(tmp_path):
|
|||
|
||||
@fixture
|
||||
def yaml_config_file_3(tmp_path):
|
||||
yaml_config_file_3 = str(tmp_path / "config_3.yml")
|
||||
with open(yaml_config_file_3, "w") as file:
|
||||
config_file = str(tmp_path / "config_3.yml")
|
||||
with open(config_file, "w") as file:
|
||||
file.write(
|
||||
"section1:\n"
|
||||
" value1: ${CONFIG_TEST_ENV}\n"
|
||||
" value2: ${CONFIG_TEST_PATH}/path\n"
|
||||
)
|
||||
return yaml_config_file_3
|
||||
return config_file
|
||||
|
||||
|
||||
@fixture
|
||||
|
@ -143,8 +143,8 @@ def json_config_file_2(tmp_path):
|
|||
|
||||
@fixture
|
||||
def json_config_file_3(tmp_path):
|
||||
yaml_config_file_3 = str(tmp_path / "config_3.json")
|
||||
with open(yaml_config_file_3, "w") as file:
|
||||
config_file = str(tmp_path / "config_3.json")
|
||||
with open(config_file, "w") as file:
|
||||
file.write(
|
||||
json.dumps(
|
||||
{
|
||||
|
@ -155,7 +155,7 @@ def json_config_file_3(tmp_path):
|
|||
},
|
||||
),
|
||||
)
|
||||
return yaml_config_file_3
|
||||
return config_file
|
||||
|
||||
|
||||
@fixture(autouse=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user