Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup tests #327

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Cleanup tests #327

merged 2 commits into from
Sep 26, 2023

Conversation

XSpielinbox
Copy link
Contributor

@XSpielinbox XSpielinbox commented Sep 25, 2023

🐞 align the descriptionPropertiesKey of New year's day of the London metal exchange with the holiday_description.properties - before it would have had a description of undefined

🎁 remove duplicate code in testManagerSameInstance and testManagerDifferentInstance methods in tests to avoid errors and make it more clear and easier to read as well as unify naming

🐞 fix naming of various testcases

🎁 replace multiple testcases that test individual years with ParamatrizedTest, to avoid code duplication.
🐞 This also fixes an error in the Ukraine tests where the test for 2014 (probably by accident) tested against the year 2018, wherefore an issue in the test-data for 2014 remained unnoticed. I checked with the official laws on the government website online, that indeed holidays get moved, to the next Monday, if they fall on a weekend and the 24.08.2014, was a Sunday.

🎁 enable assertAllHolidaysChecked for more years/countries.
🐞 This also aligns the descriptionPropertiesKeys of various countries' test-data with the definitions in holiday_description.properties

closes #330

@derTobsch derTobsch merged commit 9683b69 into focus-shift:main Sep 26, 2023
18 checks passed
@XSpielinbox XSpielinbox deleted the cleanup_tests branch September 27, 2023 09:22
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.

Wrong DescriptionPropertiesKey for New York for London metal exchange
2 participants