File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ commit_args = --no-verify
1212[tool:pytest]
1313addopts = --strict-markers
1414asyncio_mode = auto
15- markers =
15+ markers =
1616 slow: marks tests as slow (deselect with ' -m "not slow"' )
1717 acceptance_test: " marks tests as 'acceptance tests' i.e. does the system do what the user expects? Typically those are workflows."
1818 testit: " marks test to run during development"
1919 heavy_load: " mark tests that require large amount of data"
20+ deprecated: " will be removed soon"
2021
2122[mypy]
22- plugins =
23+ plugins =
2324 pydantic.mypy
2425 sqlalchemy.ext.mypy.plugin
Original file line number Diff line number Diff line change 99)
1010
1111
12- @pytest .mark .skip ( reason = "UNDER DEV" )
12+ @pytest .mark .deprecated
1313def test_settings_infered_from_default_tests_config (
1414 default_app_cfg : AppConfigDict , monkeypatch_setenv_from_app_config : Callable
1515):
16- # TODO: use app_config_for_production_legacy
1716 envs = monkeypatch_setenv_from_app_config (default_app_cfg )
18- assert envs == convert_to_environ_vars (default_app_cfg )
17+ assert envs == {
18+ k : f"{ v } " for k , v in convert_to_environ_vars (default_app_cfg ).items ()
19+ }
1920
2021 settings = ApplicationSettings .create_from_envs ()
2122
22- print ("settings=\n " , settings .model_dump_json (indent = 1 ))
23-
24- infered_config = convert_to_app_config (settings )
25-
26- assert default_app_cfg == infered_config
27- assert set (default_app_cfg .keys ()) == set (infered_config .keys ())
23+ assert convert_to_app_config (settings )
You can’t perform that action at this time.
0 commit comments