-
Notifications
You must be signed in to change notification settings - Fork 0
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
Task 42, creating tests for SampleData GoodFile and BadFile #56
Task 42, creating tests for SampleData GoodFile and BadFile #56
Conversation
Coverage reportThe coverage rate went from
Diff Coverage details (click to unfold)src/tests/test_sample_data.py
|
I think we're going to use src/validator/sample_data.py only for testing so I think it's probably better to put all of these code in the test file : src/tests/test_sample_data.py |
I agree. Doing it now. |
I think we should organize CSV files into a folder and remove unused |
That's what I was thinking of too. I can do that |
src/tests/test_sample_data.py
Outdated
lei = "000TESTFIUIDDONOTUS1" | ||
validation_result = validate_phases(self.bad_file_df, lei) | ||
|
||
print(validation_result) |
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.
do you still need this?
src/validator/main.py
Outdated
@@ -26,7 +26,6 @@ def run_validation_on_df(df: pd.DataFrame, lei: str) -> None: | |||
print("") | |||
print(df) | |||
print("") | |||
|
|||
print(validate_phases(df, lei)) |
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.
can you undo this space change?
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.
Overall looks good. Put in a few suggestions.
Seeing this also makes me realize that the response should be made more consistent whether there are validation findings or not. That's not something we need to fix for on this PR, though.
Closes #52 I misunderstood the requirements first. I thought we had to create tests to make sure the GoodFile had the correct data for each field. I understood the requirements later. --------- Co-authored-by: Nargis Sultani <[email protected]>
Closes #52
I misunderstood the requirements first. I thought we had to create tests to make sure the GoodFile had the correct data for each field. I understood the requirements later.