Skip to content

Rework test.utils.get_* methods#1022

Merged
lafrech merged 1 commit intodevfrom
tests_utils_get
Mar 6, 2026
Merged

Rework test.utils.get_* methods#1022
lafrech merged 1 commit intodevfrom
tests_utils_get

Conversation

@lafrech
Copy link
Member

@lafrech lafrech commented Mar 6, 2026

The mess in get_links made me realize the other get_* methods work because other *_lazy tests involve two components, one of which being not lazy, so that the component dict actually exists.

This PR changes those get_* methods to ensure they always return an empty dict, and fixes tests that relied on the fact the dict didn't exist.

The downside is that we don't test that no empty component dict is returned. But those modified tests were not meant to test that anyway.

We could add dedicated tests for that if it matters.

@lafrech lafrech merged commit 0f40e7a into dev Mar 6, 2026
10 checks passed
@lafrech lafrech deleted the tests_utils_get branch March 6, 2026 21:43
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.

1 participant