Closed Ch3ri0ur closed 1 year ago
Patch coverage: 85.71%
and project coverage change: +0.03%
:tada:
Comparison is base (
fa7415e
) 34.43% compared to head (c93ccaf
) 34.46%.
:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This should solve #1230.
I tried to straighten out the code a bit.
I am not sure why we checked if the key from .items() is a dict. That is not possible.
I guess in an earlier version we iterated over a presumed dict and named the variable k(for key) (But in the background it was a list). https://github.com/atlassian-api/atlassian-python-api/commit/fc620ae094c162f36d93ceaa0998ebbc1ca9bf20
Then it was modified. But they then stopped iterating over the object but iterated over the items, which are apparently not always present. https://github.com/atlassian-api/atlassian-python-api/commit/4bb337a5d262912d6459d12d51aecf549e186eb5
I looks like some classic list/dict confusion but in the end I am not sure what possible responses are. Feedback would be appreciated.
I shoehorned a testcases in there to check for this error.
With regards to https://github.com/atlassian-api/atlassian-python-api/pull/1228 . The response I got with that error has the content-type: 'application/json;charset=UTF-8' which he specifically does not trigger for.