/dports/devel/py-dj32-graphene-django/graphene-django-2.15.0/graphene_django/tests/ |
H A D | test_views.py | 30 def response_json(response): function 98 assert response_json(response) == { 107 assert response_json(response) == { 132 assert response_json(response) == { 150 assert response_json(response) == { 169 assert response_json(response) == { 204 assert response_json(response) == [ 213 assert response_json(response) == { 594 content = response_json(response) 630 content = response_json(response) [all …]
|
/dports/devel/py-graphene-django/graphene-django-2.15.0/graphene_django/tests/ |
H A D | test_views.py | 30 def response_json(response): function 98 assert response_json(response) == { 107 assert response_json(response) == { 132 assert response_json(response) == { 150 assert response_json(response) == { 169 assert response_json(response) == { 204 assert response_json(response) == [ 213 assert response_json(response) == { 594 content = response_json(response) 630 content = response_json(response) [all …]
|
/dports/net/kea/kea-2.0.1/src/lib/config/tests/ |
H A D | cmd_response_creator_unittests.cc | 107 ASSERT_TRUE(response_json); in testStockResponse() 181 HttpResponseJsonPtr response_json = boost::dynamic_pointer_cast< in TEST_F() local 183 ASSERT_TRUE(response_json); in TEST_F() 191 EXPECT_TRUE(response_json->toString().find("HTTP/1.1 200 OK") != in TEST_F() 195 EXPECT_TRUE(response_json->toString().find("\"result\": 0") != in TEST_F() 217 HttpResponseJsonPtr response_json = boost::dynamic_pointer_cast< in TEST_F() local 219 ASSERT_TRUE(response_json); in TEST_F() 227 EXPECT_TRUE(response_json->toString().find("HTTP/1.1 200 OK") != in TEST_F() 231 EXPECT_TRUE(response_json->toString().find("\"result\": 0") != in TEST_F() 252 HttpResponseJsonPtr response_json = boost::dynamic_pointer_cast< in TEST_F() local [all …]
|
/dports/net/kea/kea-2.0.1/src/bin/agent/tests/ |
H A D | ca_response_creator_unittests.cc | 116 ASSERT_TRUE(response_json); in testStockResponse() 210 ASSERT_TRUE(response_json); in TEST_F() 216 EXPECT_TRUE(response_json->toString().find("\"result\": 0") != in TEST_F() 239 ASSERT_TRUE(response_json); in TEST_F() 272 ASSERT_TRUE(response_json); in TEST_F() 314 ASSERT_TRUE(response_json); in TEST_F() 320 EXPECT_TRUE(response_json->toString().find("\"result\": 0") != in TEST_F() 371 ASSERT_TRUE(response_json); in TEST_F() 445 ASSERT_TRUE(response_json); in TEST_F() 451 EXPECT_TRUE(response_json->toString().find("\"result\": 0") != in TEST_F() [all …]
|
/dports/www/py-wagtail/wagtail-2.14.2/wagtail/images/tests/ |
H A D | test_admin_views.py | 1056 result = response_json['result'] 1071 result = response_json['result'] 1359 self.assertIn('form', response_json) 1360 self.assertIn('success', response_json) 1396 self.assertNotIn('form', response_json) 1397 self.assertIn('success', response_json) 1419 self.assertNotIn('form', response_json) 1499 self.assertIn('form', response_json) 1606 self.assertIn('form', response_json) 1816 self.assertIn('form', response_json) [all …]
|
/dports/www/py-wagtail/wagtail-2.14.2/wagtail/documents/tests/ |
H A D | test_admin_views.py | 673 self.assertIn('doc_id', response_json) 674 self.assertIn('form', response_json) 722 self.assertIn('doc_id', response_json) 723 self.assertIn('form', response_json) 776 self.assertIn('doc_id', response_json) 818 self.assertIn('doc_id', response_json) 819 self.assertIn('form', response_json) 850 self.assertIn('doc_id', response_json) 944 self.assertIn('form', response_json) 994 self.assertIn('form', response_json) [all …]
|
/dports/net-mgmt/py-pyzabbix/pyzabbix-1.0.0/pyzabbix/ |
H A D | __init__.py | 177 response_json = json.loads(response.text) 182 logger.debug("Response Body: %s", json.dumps(response_json, 188 if 'error' in response_json: # some exception 189 …if 'data' not in response_json['error']: # some errors don't contain 'data': workaround for ZBX-9… 190 response_json['error']['data'] = "No data" 192 code=response_json['error']['code'], 193 message=response_json['error']['message'], 194 data=response_json['error']['data'] 196 … raise ZabbixAPIException(msg, response_json['error']['code'], error=response_json['error']) 198 return response_json
|
/dports/www/searx/searx-1.0.0/searx/engines/ |
H A D | searx_engine.py | 49 response_json = loads(resp.text) 50 results = response_json['results'] 53 results.extend(response_json[i]) 55 results.extend({'suggestion': s} for s in response_json['suggestions']) 57 results.append({'number_of_results': response_json['number_of_results']})
|
H A D | recoll.py | 68 response_json = loads(resp.text) 70 if not response_json: 73 for result in response_json.get('results', []): 108 if 'nres' in response_json: 109 results.append({'number_of_results': response_json['nres']})
|
/dports/www/py-flask-peewee/flask-peewee-3.0.4/flask_peewee/tests/ |
H A D | rest.py | 44 def response_json(self, response): member in RestApiTestCase 132 resp_json = self.response_json(resp) 139 resp_json = self.response_json(resp) 147 resp_json = self.response_json(resp) 154 resp_json = self.response_json(resp) 163 resp_json = self.response_json(resp) 170 resp_json = self.response_json(resp) 179 resp_json = self.response_json(resp) 186 resp_json = self.response_json(resp) 194 resp_json = self.response_json(resp) [all …]
|
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/lib/ansible_test/_internal/ |
H A D | core_ci.py | 280 response_json = response.json() 281 status = response_json['status'] 291 response_json=response_json, 296 response_json=response_json, 454 response_json = response.json() 457 if 'message' in response_json: 458 message = response_json['message'] 459 elif 'errorMessage' in response_json: 461 if 'stackTrace' in response_json: 472 message = str(response_json) [all …]
|
/dports/devel/py-vcrpy/vcrpy-2.0.1/tests/integration/ |
H A D | test_aiohttp.py | 77 _, response_json = get(url, output='json', headers=headers) 81 assert cassette_response_json == response_json 100 _, response_json = post(url, data=data) 104 assert cassette_response_json == response_json 114 _, response_json = get(url, output='json', params=params, headers=headers) 118 assert cassette_response_json == response_json 128 _, response_json = get(url, output='json', params=params, headers=headers) 132 assert cassette_response_json == response_json 147 _, response_json = get(url, output='json', headers=headers) 155 assert cassette_response_json == response_json
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/ml_sdk/cloud/ml/prediction/ |
H A D | prediction_utils.py | 568 def parse_predictions(response_json): argument 580 if not isinstance(response_json, collections.Mapping): 583 repr(response_json))) 584 if PREDICTIONS_KEY not in response_json: 587 PREDICTIONS_KEY, repr(response_json))) 588 return response_json.pop(PREDICTIONS_KEY) 591 def parse_outputs(response_json): argument 606 repr(response_json))) 607 if OUTPUTS_KEY not in response_json: 610 OUTPUTS_KEY, repr(response_json))) [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/lib/ansible_test/_internal/ |
H A D | core_ci.py | 286 response_json = response.json() 287 status = response_json['status'] 297 response_json=response_json, 302 response_json=response_json, 491 response_json = response.json() 494 if 'message' in response_json: 495 message = response_json['message'] 496 elif 'errorMessage' in response_json: 498 if 'stackTrace' in response_json: 509 message = str(response_json) [all …]
|
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/lib/ansible_test/_internal/ |
H A D | core_ci.py | 334 response_json = response.json() 335 status = response_json['status'] 345 response_json=response_json, 350 response_json=response_json, 537 response_json = response.json() 540 if 'message' in response_json: 541 message = response_json['message'] 542 elif 'errorMessage' in response_json: 544 if 'stackTrace' in response_json: 555 message = str(response_json) [all …]
|
/dports/net-mgmt/seafile-server/seafile-server-8.0.7-server/tests/test_file_operation/ |
H A D | test_upload_and_update.py | 41 response_json = response.json() 42 assert response_json[0]['size'] == 0 43 assert response_json[0]['id'] == file_id 47 assert response_json[0]['name'] == file_name 56 response_json = response.json() 57 assert response_json[0]['size'] == total_size 58 new_file_id = response_json[0]['id'] 65 response_json = response.json() 66 assert response_json[0]['size'] == file_size 67 new_file_id = response_json[0]['id'] [all …]
|
/dports/www/py-django-braces/django-braces-1.15.0/tests/ |
H A D | test_ajax_mixins.py | 161 response_json = json.loads(response.content.decode("utf-8")) 163 self.assertEqual(response_json, self.request_dict) 170 response_json = json.loads(response.content.decode("utf-8")) 172 self.assertEqual(response_json, None) 182 response_json = json.loads(response.content.decode("utf-8")) 184 self.assertEqual(response_json, {"error": "you messed up"}) 199 response_json = json.loads(response.content.decode("utf-8")) 201 self.assertEqual(response_json, self.view_class.error_response_dict)
|
/dports/net-mgmt/py-pyeapi/pyeapi-0.8.4/test/unit/ |
H A D | test_eapilib.py | 75 response_json = json.dumps(response_dict) 78 mockcfg = {'getresponse.return_value.read.return_value': response_json} 94 response_json = json.dumps(response_dict) 97 mockcfg = {'getresponse.return_value.read.return_value': response_json} 155 response_json = json.dumps(response_dict) 158 mockcfg = {'getresponse.return_value.read.return_value': response_json} 171 response_json = json.dumps(response_dict) 174 mockcfg = {'getresponse.return_value.read.return_value': response_json} 192 response_json = json.dumps(response_dict) 195 mockcfg = {'getresponse.return_value.read.return_value': response_json}
|
/dports/www/py-django-allauth/django-allauth-0.41.0/allauth/socialaccount/providers/draugiem/ |
H A D | views.py | 85 response_json = response.json() 87 if 'error' in response_json: 88 raise DraugiemApiError(response_json['error']) 90 token = SocialToken(app=app, token=response_json['apikey']) 92 login = provider.sociallogin_from_response(request, response_json)
|
/dports/dns/py-dns-lexicon/dns-lexicon-3.8.3/lexicon/providers/ |
H A D | hostingde.py | 218 response_json = response.json() # Work with json Object 219 LOGGER.debug("_request response: %s", response_json) 220 status = response_json.get("status", "*** no status available ***") 224 and response_json.get("errors")[0].get("value", "") == "blocked" 235 read_data = response_json.get("response", {}).get("data", None) 239 read_data = response_json.get("response", {}).get("records", None) 246 total_pages = response_json.get("response", {}).get("totalPages", 0)
|
/dports/databases/pecl-mongodb/mongodb-1.9.1/src/libmongoc/src/libmongoc/src/mongoc/ |
H A D | mongoc-cluster-aws.c | 309 bson_t *response_json = NULL; in _obtain_creds_from_ecs() local 334 response_json = bson_new_from_json ( in _obtain_creds_from_ecs() 336 if (!response_json) { in _obtain_creds_from_ecs() 341 if (bson_iter_init_find_case (&iter, response_json, "AccessKeyId") && in _obtain_creds_from_ecs() 351 if (bson_iter_init_find_case (&iter, response_json, "Token") && in _obtain_creds_from_ecs() 367 bson_destroy (response_json); in _obtain_creds_from_ecs() 385 bson_t *response_json = NULL; in _obtain_creds_from_ec2() local 453 response_json = bson_new_from_json ( in _obtain_creds_from_ec2() 455 if (!response_json) { in _obtain_creds_from_ec2() 470 if (bson_iter_init_find_case (&iter, response_json, "Token") && in _obtain_creds_from_ec2() [all …]
|
/dports/sysutils/py-azure-cli/azure-cli-2.29.2/azure/cli/command_modules/network/ |
H A D | tunnel.py | 94 response_json = None 97 response_json = json.loads(response.content.decode("utf-8")) 100 if response_json is not None and response_json["message"] is not None: 101 exp = CloudError(response, error=response_json["message"]) 106 self.last_token = response_json["authToken"] 107 self.node_id = response_json["nodeId"]
|
/dports/graphics/blender/blender-2.91.0/release/scripts/addons/blenderkit/ |
H A D | oauth.py | 57 response_json = json.loads(response.content) 58 refresh_token = response_json ['refresh_token'] 59 access_token = response_json ['access_token'] 60 return access_token, refresh_token, response_json
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/controllers/ |
H A D | metrics_controller_spec.rb | 109 expect(response_json['version']).to eq('ruby-3.0-patch1') 110 expect(response_json['worker_id']).to eq('worker-0') 111 expect(response_json['memory_rss']).to eq(1024) 118 def response_json method
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/cisco/aci/tests/unit/module_utils/ |
H A D | test_aci.py | 77 aci.response_json(json_response) 179 aci.response_json(json_response) 218 aci.response_json(json_response) 261 aci.response_json(json_response) 349 aci.response_json(json_response)
|