-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure tests #152
Restructure tests #152
Conversation
Reviewer's Guide by SourceryThis PR restructures the tests by moving the parsing fixture into No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ka-sarthak - I've reviewed your changes - here's some feedback:
Overall Comments:
- There's a typo in the parsed_measurement_archive fixture docstring: 'yeilded' should be 'yielded'
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need to nest the tests in folders rather than just having test_xrd.py
etc. but looks good!
So rather have one file for each technique, which contains all related tests. I like that too. |
@JonathanNoky This might be interesting for you. I renamed |
As we will have more types of measurement schemas added (upcoming PPMS, transmission), it's nicer to have some common fixtures for testing to avoid code duplication.
Parsing a measurement file is one common step. This PR moves the parsing fixture into
conftest.py
. Along withcaplog
, this fixture can be used while testing different measurements.Also, we should have individual folders to contain tests for each measurement technique.
@hampusnasstrom @aalbino2 What are your thoughts?
Summary by Sourcery
Tests: