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

Test cleanup #2768

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Test cleanup #2768

merged 3 commits into from
Jan 29, 2025

Conversation

jku
Copy link
Member

@jku jku commented Jan 17, 2025

  • Remove unused test repository
  • Remove an unused file from otherwise used test repository
  • Tweak test code so that similar functions in three files are actually called the same and do the same thing (they are still copy-paste: we should have a UpdaterTestCase class/mixin but I did not want to do it here)

This is preparation for #2767 and should be merged first -- but it's a completely independent cleanup and makes sense on its own

jku added 3 commits January 17, 2025 11:11
test_updater_ng.py is a little archaic (as it uses the static test
repository content from ye olden days). This commit does not change that
but removes an extra file in client cache dir: it is now quite confusing
as it looks a bit like intermediate root caching but is just an unused
file.

This has the nice side effect that tests now longer need to workaround
this extra file.

Signed-off-by: Jussi Kukkonen <[email protected]>
Signed-off-by: Jussi Kukkonen <[email protected]>
This is still copy-paste in three different files but now at least
the function is the same in every location and not directly copied.

We really should have generic TestCase class...

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku requested a review from a team as a code owner January 17, 2025 09:35
@jku jku merged commit 88c87c4 into theupdateframework:develop Jan 29, 2025
16 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.

2 participants