-
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
42 add get submission endpoint #44
Conversation
Was in my poetry.lock so running pytests was good locally
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
tests/api/routers/test_filing_api.py
Outdated
validation_ruleset_version="v1", | ||
) | ||
] | ||
return mock |
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.
why a return here? the actual test code isn't being reached, right?
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.
Correct, that was a copy/paste error. Originally I had it as a fixture but then moved the get_submissions mock to inside the actual test function (is there a preference for one over the other?). Removed that and revealed the second assert_called_once failed so switched those to just assert_called_with
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
Closes #42
Part of this pulled in changes from #41 for the api conftest and the set_db function for Routers
Also fixed the test_get_filing function which was actually testing filing periods, not filings.