Skip to content

Fix KNMI data platform tests#453

Merged
martinvonk merged 2 commits intodevfrom
439-knmi-data-platform-tests
May 1, 2025
Merged

Fix KNMI data platform tests#453
martinvonk merged 2 commits intodevfrom
439-knmi-data-platform-tests

Conversation

@martinvonk
Copy link
Collaborator

Add a custom exception for KNMI data platform tests.

I tried playing around a bit with what kind of errors we generally get. Most common was the KeyError: 'files' because the response contained: {'error': 'Rate limit exceeded'}. I now check if error in the response json and raise a custom error. In the tests this custom error is also allowed.

@martinvonk martinvonk linked an issue May 1, 2025 that may be closed by this pull request
@github-project-automation github-project-automation bot moved this to Todo in NHFLO May 1, 2025
@martinvonk martinvonk requested a review from dbrakenhoff May 1, 2025 10:29
Copy link
Collaborator

@dbrakenhoff dbrakenhoff left a comment

Choose a reason for hiding this comment

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

Nice, good solution for now I think.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in NHFLO May 1, 2025
@martinvonk martinvonk merged commit 3e5aa7e into dev May 1, 2025
1 of 2 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in NHFLO May 1, 2025
@martinvonk martinvonk deleted the 439-knmi-data-platform-tests branch May 1, 2025 11:18
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.

KNMI data platform tests are very flaky

2 participants