Open IncandescentChrysalis opened 1 week ago
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:
responses[None] = [
…
]
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 else
to check if data is a byte string, in all other cases the element should be dumped as JSON string and convert it to a bytes string.
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: