Skip to content

Added validation module with pytest tests for input handling#11

Open
PulindGadhia wants to merge 1 commit intoOSIPI:mainfrom
PulindGadhia:add-validation-tests
Open

Added validation module with pytest tests for input handling#11
PulindGadhia wants to merge 1 commit intoOSIPI:mainfrom
PulindGadhia:add-validation-tests

Conversation

@PulindGadhia
Copy link
Copy Markdown

I added a small validation module to check input files before processing, mainly to make sure the file exists and has the correct .nii format. Along with that, I included some pytest tests to cover basic cases like valid input, wrong file type, and missing files.

This is a small step towards improving input handling and making the code more reliable. It can also be extended later to support more detailed validation and testing.

@PulindGadhia
Copy link
Copy Markdown
Author

I tested this locally using pytest and everything is working fine.
Let me know if I should improve this further or add more validation cases.

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.

1 participant