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

Labels

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

Type

No type

Projects

Status

No status

Status

No status

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions