Closed starsinmypockets closed 4 years ago
CI fails with
nosetests: error: no such option: --ckan
The command "sh bin/travis-run.sh" exited with 2.
No sure that I'm responsible for this one?
You can ignore the failures against master @starsinmypockets , but on the rest of versions they are genuine syntax errors. Even after fixing these locally I get lots of failures on the related tests, so can you fix the syntax and check the tests locally? Cheers
@amercader Updated - this should work now :)
note I get the following (2) errors running tests locally -- these errors occur against master branch as well as my own branch in my local:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/srv/app/src_extensions/ckanext-showcase/ckanext/showcase/tests/test_plugin.py", line 129, in test_showcase_edit_redirects_to_showcase_details edit_response = submit_and_follow(app, form, env, 'save') File "/srv/app/src/ckan/ckan/tests/helpers.py", line 280, in submit_and_follow extra_environ=extra_environ, args) File "/srv/app/src/ckan/ckan/tests/helpers.py", line 301, in webtest_submit params=fields, args) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 369, in goto return method(href, **args) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 838, in post content_type=content_type) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 781, in _gen_request params, upload_files or ()) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 1000, in encode_multipart body = join_bytes('\r\n', lines) File "/usr/lib/python2.7/site-packages/webtest/compat.py", line 79, in join_bytes return sep.join(l) TypeError: sequence item 43: expected string, NoneType found
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/srv/app/src_extensions/ckanext-showcase/ckanext/showcase/tests/test_plugin.py", line 85, in test_showcase_new_redirects_to_manage_datasets create_response = submit_and_follow(app, form, env, 'save') File "/srv/app/src/ckan/ckan/tests/helpers.py", line 280, in submit_and_follow extra_environ=extra_environ, args) File "/srv/app/src/ckan/ckan/tests/helpers.py", line 301, in webtest_submit params=fields, args) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 369, in goto return method(href, **args) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 838, in post content_type=content_type) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 781, in _gen_request params, upload_files or ()) File "/usr/lib/python2.7/site-packages/webtest/app.py", line 1000, in encode_multipart body = join_bytes('\r\n', lines) File "/usr/lib/python2.7/site-packages/webtest/compat.py", line 79, in join_bytes return sep.join(l) TypeError: sequence item 43: expected string, NoneType found
Ran 142 tests in 75.837s
FAILED (errors=2)
Improve performance by batching package and showcase lookups with a single query.