Skip to content

Conversation

@machshev
Copy link
Collaborator

JobTime still has unit tests in the same module as the class, move these out to the tests directory.
Migrate from unittest tests and instead use pytest.

Fixed some issues with the implementation and refactored based on issues raised while expanding the test cases.

This PR brings up the total unit test coverage metric to 5%.

Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

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

Some nits, but it looks good to me otherwise!

Disable rule that wants long exception error messages to be defined in
the Error class itself. This makes some sense for custom error classes.
However it's not appropriate to define custom error classes for every
different error case. Generally a common error class is used in such
cases, for example `RuntimeError` and `ValueError`.

Signed-off-by: James McCorrie <[email protected]>
@machshev machshev merged commit fe7fecd into lowRISC:master Sep 24, 2025
6 checks passed
@machshev machshev deleted the job-time branch September 24, 2025 11:11
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