Skip to content

Add unit test coverage for run_key_migration_functions #8049

@acwhite211

Description

@acwhite211

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions