From 36b36a933bfaff7461a8a366b65d05c54c195b86 Mon Sep 17 00:00:00 2001 From: Normann Date: Fri, 21 Aug 2026 02:26:42 +0200 Subject: [PATCH] test: avoid deprecated pydantic instance metadata --- tests/test_eosdashconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_eosdashconfig.py b/tests/test_eosdashconfig.py index b3feaf42..cbb7d394 100644 --- a/tests/test_eosdashconfig.py +++ b/tests/test_eosdashconfig.py @@ -83,7 +83,7 @@ class TestEOSdashConfig: """Test extracting EOS configuration details from EOS config based on provided values.""" with FILE_TESTDATA_EOSSERVER_CONFIG_1.open("r", encoding="utf-8", newline=None) as fd: values = json.load(fd) - config_details = create_config_details(config_eos, values) + config_details = create_config_details(type(config_eos), values) assert any( item["name"] == "server.eosdash_port" and item["value"] == "8504" for key, item in config_details.items() @@ -98,7 +98,7 @@ class TestEOSdashConfig: with FILE_TESTDATA_EOSSERVER_CONFIG_1.open("r", encoding="utf-8", newline=None) as fd: values = json.load(fd) config_details = create_config_details( - PVForecastPlaneSetting(), values, values_prefix=["pvforecast", "planes", "0"] + PVForecastPlaneSetting, values, values_prefix=["pvforecast", "planes", "0"] ) assert any( item["name"] == "pvforecast.planes.0.surface_azimuth" and item["value"] == "170"