Refactor update hook test cases

Created on 8 October 2023, over 1 year ago
Updated 25 October 2023, over 1 year ago

Core uses one test class per update hook. This makes the tests clean and self-contained, and it is clear from the class naming etc. what is being tested.

Honeypot recently added multiple new update hooks, and all the tests were being put into one class. In addition to being less clear, the tests were sharing the same update fixture which means they all had to start from the same baseline.

This patch refactors the Honeypot update tests to use the same pattern as Core. In addition, having separate update tests like this should make them easier to use as examples to write future new update tests. This furthers the work started in ✨ Add index on hostname column Fixed .

πŸ“Œ Task
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024