Revise `test_get_job_includes` and endpoint
See original GitHub issueWhat is the expected behavior?
The test_get_job_includes
has been failing in a number of recent travis runs for the premium accounts:
File "/home/travis/build/Qiskit/qiskit-ibmq-provider/qiskit/providers/ibmq/api/ibmqconnector.py", line 194, in get_job
if ('result' in qasm) and ('data' in qasm['result']):
TypeError: argument of type 'NoneType' is not iterable
The endpoint has been slightly flaky for a while - we should investigate and coordinate with the API team for a proper solution, and ensure that:
- the endpoint is working for all environments + both old api and new api
- the test use the same and correct fields (for connector we use
deleted
, for client we useshots
) - the test also exercises
include_fields
- the function handles unexpected cases gracefully (excluding/including non-existent fields, etc)
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
get_job
withinclude_fields=['status']
is now failing with a generic error for v1 api. It appears to be the only field failing, andexclude_fields['status']
works.Fixed via #380