-
Notifications
You must be signed in to change notification settings - Fork 6
Tidy up mocks #11
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
Tidy up mocks #11
Conversation
|
What about reduce the number of files to 1 (per |
I am not sure if I like it. Now you can easily compare two files side-by-side and verify test results. If we merge them that will be much harder. |
56828fe to
577facc
Compare
a11cf51 to
a8d0320
Compare
|
what about classifying the test based on the type? (exact_match, tolerance, params, etc.) |
Sorry not clear to me. We already have tests for different checktype in |
a8d0320 to
5062e29
Compare
|
I have moved expected results from json files to test files. This data is not json and it is confusing to keep it with mocks in json format. |
don't mind, I actually think that maybe the mocks will be used in different tests, so no need to partition them. |
chadell
left a comment
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.
LGTM
4e41e0e to
b312a94
Compare
b312a94 to
b7ed34e
Compare
This PR is about issue #8
Proposed mock file structure:
Another function was added to
tests/utils.pyto load all mocks at once.These three mocks are:
pre - precheck data
post - postcheck data