Skip to content

Instantly share code, notes, and snippets.

(ckan-tester) [tino097@R2D2 ckan]$ nosetests --ckan --reset-db --nologcapture --with-pylons=test-core.ini ckan.tests.lib.test_cli -s -v
No handlers could be found for logger "ckan.lib.uploader"
ckan.tests.lib.test_cli.TestJobShow.test_show_existing ... ok
ckan.tests.lib.test_cli.TestJobShow.test_show_missing_id ... ok
ckan.tests.lib.test_cli.TestJobsCancel.test_cancel_existing ... ok
ckan.tests.lib.test_cli.TestJobsCancel.test_cancel_missing_id ... ok
ckan.tests.lib.test_cli.TestJobsCancel.test_cancel_not_existing ... ok
ckan.tests.lib.test_cli.TestJobsClear.test_clear_all_queues ... ok
ckan.tests.lib.test_cli.TestJobsClear.test_clear_specific_queues ... ok
ckan.tests.lib.test_cli.TestJobsList.test_list_default_queue ... ok
ERROR: Test extension sets up a unique route.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/ckan-tester/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/tino097/projects/viderum/ckan/ckanext/example_flask_streaming/tests/test_streaming_responses.py", line 42, in test_template_streaming
resp = self._get_resp(url)
File "/home/tino097/projects/viderum/ckan/ckanext/example_flask_streaming/tests/test_streaming_responses.py", line 17, in _get_resp
res = req.get_response(app, True)
File "/home/tino097/.virtualenvs/ckan-tester/lib/python2.7/site-packages/webob/request.py", line 1049, in get_response
(local) [tino097@R2D2 ckan]$ nosetests --reset-db --nologcapture --with-pylons=test-core.ini ckanext.example_flask_streaming.tests.test_streaming_responses:TestFlaskStreaming.test_template_streaming -s -v
No handlers could be found for logger "ckan.lib.uploader"
Test extension sets up a unique route. ... ERROR
======================================================================
ERROR: Test extension sets up a unique route.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
ERROR: Test extension sets up a unique route.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/tino097/ckan/lib/local/src/ckan/ckanext/example_flask_streaming/tests/test_streaming_responses.py", line 42, in test_template_streaming
resp = self._get_resp(url)
File "/home/tino097/ckan/lib/local/src/ckan/ckanext/example_flask_streaming/tests/test_streaming_responses.py", line 17, in _get_resp
res = req.get_response(app, True)
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/webob/request.py", line 1049, in get_response
======================================================================
ERROR: ckanext.imageview.tests.test_view.TestImageView.test_view_shown_on_resource_page_with_image_url
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/tino097/ckan/lib/local/src/ckan/ckan/tests/helpers.py", line 389, in wrapper
return func(*args, **kwargs)
File "/home/tino097/ckan/lib/local/src/ckan/ckanext/imageview/tests/test_view.py", line 45, in test_view_shown_on_resource_page_with_image_url
@tino097
tino097 / errors.txt
Created August 14, 2018 09:09
ckanext-tests
======================================================================
ERROR: test suite for <class 'ckanext.example_idatasetform.tests.test_example_idatasetform.TestVersion5'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/suite.py", line 209, in run
self.setUp()
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
diff --git a/doc/conf.py b/doc/conf.py
index cad505b66..4244696d6 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -183,6 +183,22 @@ def get_status_of_this_version():
return 'unsupported'
+def get_current_release_tag():
+ ''' Return the name of the tag for the current release
# Objects
class User(db.Model):
id = db.Column(db.Integer(), primary_key=True)
username = db.Column(db.String(255))
password = db.Column(db.String(255))
email = db.Column(db.String(30))
posts = db.relationship('Post', backref='user', lazy='subquery')
def __init__(self, username):
self.username = username
2018-05-29 11:06:20,312 INFO [ckan.config.environment] Loading static files from public
2018-05-29 11:06:20,348 INFO [ckan.config.environment] Loading templates from /home/tino097/ckan/lib/local/src/ckan/ckan/templates
2018-05-29 11:06:20,732 INFO [ckan.config.environment] Loading templates from /home/tino097/ckan/lib/local/src/ckan/ckan/templates
Starting server in PID 12970.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
/home/tino097/ckan/lib/local/src/ckan/ckan/config/middleware/flask_app.pyc changed; reloading...
-------------------- Restarting --------------------
2018-05-29 11:06:31,503 INFO [ckan.config.environment] Loading static files from public
2018-05-29 11:06:31,578 INFO [ckan.config.environment] Loading templates from /home/tino097/ckan/lib/local/src/ckan/ckan/templates
2018-05-29 11:06:31,934 INFO [ckan.config.environment] Loading templates from /home/tino097/ckan/lib/local/src/ckan/ckan/templates
Exception happened during processing of request from ('127.0.0.1', 44774)
Traceback (most recent call last):
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/paste/httpserver.py", line 1068, in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib64/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.7/SocketServer.py", line 652, in __init__
self.handle()
File "/home/tino097/.virtualenvs/local/lib/python2.7/site-packages/paste/httpserver.py", line 442, in handle
BaseHTTPRequestHandler.handle(self)