The run_key_migration_functions management command re-runs several important data migration sections, but it currently has no focused unit test coverage. Add tests that verify the command dispatches the correct sections, preserves execution order, passes apps and optional verbose output correctly, and covers the local database logic implemented directly in the command module.
Add a new back-end tests for each of the key migration functions:
apply_patches
fix_cots
fix_permissions
fix_business_rules
fix_schema_config
fix_app_resource_dirs
fix_tectonic_ranks
fix_misc
We can try writing tests for all the specific migration functions in all of these sections. That would be a lot, so maybe we could pick some select functions of interest to write unit tests for.
The
run_key_migration_functionsmanagement command re-runs several important data migration sections, but it currently has no focused unit test coverage. Add tests that verify the command dispatches the correct sections, preserves execution order, passesappsand optional verbose output correctly, and covers the local database logic implemented directly in the command module.Add a new back-end tests for each of the key migration functions:
apply_patchesfix_cotsfix_permissionsfix_business_rulesfix_schema_configfix_app_resource_dirsfix_tectonic_ranksfix_miscWe can try writing tests for all the specific migration functions in all of these sections. That would be a lot, so maybe we could pick some select functions of interest to write unit tests for.