Skip to content

UT: Fix ECB TITLE to match current API value#179

Merged
jczaja merged 1 commit intoRustInFinance:mainfrom
mbronk:personal/mbronk/ecb_ut_fix
Mar 13, 2026
Merged

UT: Fix ECB TITLE to match current API value#179
jczaja merged 1 commit intoRustInFinance:mainfrom
mbronk:personal/mbronk/ecb_ut_fix

Conversation

@mbronk
Copy link
Copy Markdown
Contributor

@mbronk mbronk commented Mar 10, 2026

Background / issue statement

The ECB Data Portal (remote API) changed the TITLE attribute value for the USD/EUR series:

- US dollar/Euro
+ US dollar/Euro ECB reference exchange rate

which is breaking ❌ test_ecb_parse_exchange_rate_from_url.


Changes

Updated test assertion as well as the offline data/ecb_example_response.xml to match current API.

Note the title field is unused in prod code, so no functional impact.

#[allow(dead_code)]
title: String,

Signed-off-by: Mateusz Bronk <mbronk@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@sfraczek sfraczek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@jczaja jczaja merged commit 3983cf1 into RustInFinance:main Mar 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants