Skip to content

Only use core dependencies for unit tests #6832

@trexfeathers

Description

@trexfeathers

Paves the way for using testing to confirm that Iris' core code functions with only core dependencies.

  • No optional dependency should be imported within iris/tests/unit files
  • Existing calls to optional dependencies in iris/tests/unit should be refactored in one of two ways:
    • Highly granular unit testing: replace the calls with mocked calls.
    • More widely scoped tests: move to iris/tests/integration (re-writing them is out of scope here)
  • iris/tests/integration should include at least one call down to each optional dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    Dragon Sub-Task 🦎https://github.com/orgs/SciTools/projects/19?pane=info

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions