From 1fed37ce0c5b9f94ae1f78bc8576315831814b6e Mon Sep 17 00:00:00 2001 From: Mateusz Bronk Date: Mon, 9 Mar 2026 14:30:56 +0000 Subject: [PATCH] UT: Fix ECB TITLE to match current API value Signed-off-by: Mateusz Bronk --- data/ecb_example_response.xml | 22 +++++++++++----------- src/ecb.rs | 10 ++++++++-- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/data/ecb_example_response.xml b/data/ecb_example_response.xml index 3ab0866..63a0a63 100644 --- a/data/ecb_example_response.xml +++ b/data/ecb_example_response.xml @@ -3,13 +3,13 @@ xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:generic="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic" - xsi:schemaLocation="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message http://data-api.ecb.europa.eu:80/vocabulary/sdmx/2_1/SDMXMessage.xsd - http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common http://data-api.ecb.europa.eu:80/vocabulary/sdmx/2_1/SDMXCommon.xsd - http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic http://data-api.ecb.europa.eu:80/vocabulary/sdmx/2_1/SDMXDataGeneric.xsd"> + xsi:schemaLocation="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message https://data-api.ecb.europa.eu:443/vocabulary/sdmx/2_1/SDMXMessage.xsd + http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common https://data-api.ecb.europa.eu:443/vocabulary/sdmx/2_1/SDMXCommon.xsd + http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic https://data-api.ecb.europa.eu:443/vocabulary/sdmx/2_1/SDMXDataGeneric.xsd"> - e150371e-2e4d-4f1c-8463-517dca6e3fbc + 070c0a74-16dc-49c3-9657-354adef2925f false - 2024-08-28T20:59:54.602+02:00 + 2026-03-09T16:06:40.498+01:00 @@ -17,7 +17,7 @@ - @@ -28,15 +28,15 @@ - + - - + + + - + diff --git a/src/ecb.rs b/src/ecb.rs index e58707f..eb5c1d2 100644 --- a/src/ecb.rs +++ b/src/ecb.rs @@ -176,7 +176,10 @@ mod tests { assert_eq!(ecb_response.freq, "D"); assert_eq!(ecb_response.currency, "USD"); assert_eq!(ecb_response.currency_denom, "EUR"); - assert_eq!(ecb_response.title, "US dollar/Euro"); + assert_eq!( + ecb_response.title, + "US dollar/Euro ECB reference exchange rate" + ); assert_eq!(ecb_response.unit, "USD"); assert_eq!(ecb_response.date, "2023-07-13"); assert_eq!(ecb_response.rate, "1.1182"); @@ -220,7 +223,10 @@ mod tests { assert_eq!(ecb_response.freq, "D"); assert_eq!(ecb_response.currency, "USD"); assert_eq!(ecb_response.currency_denom, "EUR"); - assert_eq!(ecb_response.title, "US dollar/Euro"); + assert_eq!( + ecb_response.title, + "US dollar/Euro ECB reference exchange rate" + ); assert_eq!(ecb_response.unit, "USD"); assert_eq!(ecb_response.date, "2023-07-13"); assert_eq!(ecb_response.rate, "1.1182");