Skip to content

Clean up scmdata testing #226

@znicholls

Description

@znicholls

Is your feature request related to a problem? Please describe.

The assert_scmdf_almost_equal function is a bit messier and harder to use than is necessary.

Describe the solution you'd like

We clean up the function. Immediate things to do:

  • rename to assert_scmrun_almost_equal
  • check whether the allow_unordered and check_ts_names arguments are still relevant. If they are, try to better capture what they do
  • fix the type hints to refer to BaseScmRun
  • see if we can unify the paths through the function so they all use pdt.assert_frame_equal and we can remove npt.assert_allclose (in theory, the pandas function also uses assert all close so this feels like it should be possible, we may have issues with the time point comparisons of course)
  • add type hints throughout the entire module

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

This would be a breaking change, so would need appropriate deprecation warnings (probably over at least two minor releases)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions