We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests on python 2 take a long time, then crashes. I'm on master.
E................. ====================================================================== ERROR: Failure: IndexError (list index out of range) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/Users/cthoyt/dev/ndex-python/ndex/test/non_unittest_testing.py", line 106, in <module> update_network_properties(ndex, test_network_1_summary, test_property_dict) File "/Users/cthoyt/dev/ndex-python/ndex/test/non_unittest_testing.py", line 42, in update_network_properties subnetwork_id = network_summary["subnetworkIds"][0] IndexError: list index out of range -------------------- >> begin captured logging << -------------------- requests.packages.urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): dev2.ndexbio.org requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "GET /rest/admin/status HTTP/1.1" 200 137 requests.packages.urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): dev2.ndexbio.org requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "GET /v2/network/b612d677-c714-11e6-b48c-0660b7976219/summary HTTP/1.1" 200 1168 requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "GET /v2/network/b612d677-c714-11e6-b48c-0660b7976219 HTTP/1.1" 200 None requests.packages.urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): dev2.ndexbio.org requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "POST /v2/network HTTP/1.1" 201 71 requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "GET /v2/network/7dcf3150-ef88-11e6-8a3a-0660b7976219/summary HTTP/1.1" 200 429 requests.packages.urllib3.connectionpool: DEBUG: http://dev2.ndexbio.org:80 "PUT /v2/network/7dcf3150-ef88-11e6-8a3a-0660b7976219/systemproperty HTTP/1.1" 204 0 --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 18 tests in 122.188s
I would suggest using a mock server (or monkey-patching urllib on run time with mock), and packing any relevant testing data with the git repository.
mock
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tests on python 2 take a long time, then crashes. I'm on master.
I would suggest using a mock server (or monkey-patching urllib on run time with
mock
), and packing any relevant testing data with the git repository.The text was updated successfully, but these errors were encountered: