-
Notifications
You must be signed in to change notification settings - Fork 666
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
Cannot add a test mocking a JSON list response #1456
Comments
Can you post the working branch? Here no mock is visible. |
I was merely suggesting an API route which response has a list type, but you can test this behaviour with whichever you prefer, even modifying one which already exists if you so prefer. The response payload would look like this:
|
Now I get you. Long time since I added the request mockup. It expects a dict or uses the content as it is. You can update the code in mockup.py to handle also other types. I suggest to change the current |
There is no test for the
get_issue_remote_links
method, calling the REST API listing remote links of an issue.Trying to add one, it seems the test framework does not handle a JSON response containing a list:
The text was updated successfully, but these errors were encountered: