Skip to content

Conversation

@benthorner
Copy link
Contributor

Follows on from: #29

In attempting to refactor the reader classes I found it
useful to have even more tests than those I proposed
previously. Rather than have a huge "refactoring" PR
I thought it would be better to propose them first.

Note: the first commit isn't related to coverage but is
also a bit tangential to the refactoring, so added here.

Although these gave some indication of the behaviour of the method,
they weren't wholly accurate: passing a boolean of "False" to the
method would return an Iterable[ObsData], not an Iterable[RawData].
We can be more descriptive with a docstring instead.
Coverage for these lines was added in [^1].

[^1]: 20a420f
Copy link
Owner

@avaldebe avaldebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for this PR. I really appreciate the additional tests.
Please consider my comments about indirect parameterization and the use of fixtures in order to keep the test setup outside the test function.

@avaldebe avaldebe merged commit f8d6d59 into avaldebe:master Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants