The test tests.unit.database_tests.CloudantDatabaseTests.test_get_search_result_with_both_q_and_query failed with this message:
Error Message
"A si[15 chars]rameter is required. Found: {'query': 'julia*', 'q': 'julia*'}" != "A si[15 chars]rameter is required. Found: {'q': 'julia*', 'query': 'julia*'}"
- A single query/q parameter is required. Found: {'query': 'julia*', 'q': 'julia*'}
? ----
+ A single query/q parameter is required. Found: {'q': 'julia*', 'query': 'julia*'}
The problem is that the test asserts a static message against a generated message wrt the query parameters, so the ordering is not guaranteed. We should either just assert the beginning of the message or make sure the parameters are compared or issued in the same order.
Cloudant (python-cloudant) version(s) that are affected by this issue.
The test
tests.unit.database_tests.CloudantDatabaseTests.test_get_search_result_with_both_q_and_query
failed with this message:The problem is that the test asserts a static message against a generated message wrt the query parameters, so the ordering is not guaranteed. We should either just assert the beginning of the message or make sure the parameters are compared or issued in the same order.
tests.unit.database_tests.CloudantDatabaseTests.test_get_search_result_with_both_q_and_query