Skip to content

Conversation

@machshev
Copy link
Collaborator

Finish splitting out utils/__init__.py into more descriptive groupings under utils/*, and add some corresponding tests.

@machshev machshev force-pushed the split-utils branch 2 times, most recently from dd213fe to a66dfc0 Compare September 17, 2025 13:31
@machshev machshev marked this pull request as ready for review September 17, 2025 13:32
@machshev machshev self-assigned this Sep 22, 2025
Copy link
Contributor

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the new tests, and explaining the magical pytest builtin fixtures to me!

Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Given the nature of tests, some things are implied or
simplified to make the tests more readable. This rule
checks for boolean passed as positional argument. Which
makes sense for the main codebase, as flags passed as
positional make it difficult to know what flag is being
set. However in the tests it's common to assert against
a boolean and noqa comments would make the tests needlessly
messy. Disabling the rule globally for test files given
the prevalence of this usecase.

Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Fixes some regressions that occored while converting over to
pathlib. These tests will also ensure the expected behaviour
is preserved in the future.

Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
@machshev machshev merged commit d097727 into lowRISC:master Sep 22, 2025
6 checks passed
@machshev machshev deleted the split-utils branch September 22, 2025 15:21
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