Skip to content

Conversation

@MattZur
Copy link
Collaborator

@MattZur MattZur commented Apr 14, 2025

Fix #27 . use pytest fixtures to restructure the various calling of directories in processing and setup tests; and create a conftest.py from which to manage fixtures

@MattZur MattZur requested a review from jwaiton April 14, 2025 09:42
Copy link
Member

@jwaiton jwaiton left a comment

Choose a reason for hiding this comment

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

Excellent work! This removes more lines of code than it introduces (which is almost always a good thing). I only have a minor nitpick addressed in the other comment.

return MULE_dir + '/packs/tests/data/'

@pytest.fixture(scope="session")
def ch3wd2_dir(data_dir):
Copy link
Member

@jwaiton jwaiton Apr 14, 2025

Choose a reason for hiding this comment

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

As ch3wd2_dir is pointing to a binary file for testing rather than a directory, I'd change this fixtures name to something like ch3wd2_bin, or WD2_3ch_dat. The interpretation is up to you :)

Copy link
Member

@jwaiton jwaiton left a comment

Choose a reason for hiding this comment

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

This PR simplifies the use of fixtures with conftest.py making the code less repetitive and easier to read. Good job!

@jwaiton jwaiton merged commit da7fc98 into nu-ZOO:main Apr 14, 2025
1 check passed
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.

Include general fixtures for the MULE directory

2 participants