-
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
SFR-2179/get_collection_list #373
Conversation
ayan1229
commented
Sep 23, 2024
- This PR validates the api response for a query that returns collection list by title.
- it also verifies that when the API is hit, it doesn't return an empty JSON body in response
@@ -19,4 +19,4 @@ def test_get_collection(): | |||
|
|||
response_json = response.json() | |||
|
|||
assert response_json is not None | |||
assert response_json is not None |
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.
nit: new line at eof
tests/rest_api/test_get_list.py
Outdated
|
||
response_json = response.json() | ||
|
||
assert response_json is not None |
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.
nit: new line at eof
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 always want to keep an empty line at the end? or no lines
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.
always a new line that is empty at the end of the file!
tests/rest_api/test_get_list.py
Outdated
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.
hmm is test_get_list explicit?
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.
renaming to test_get_collection_list