From ef5e9a7ff9427d11dfd811c2bf5778d4a541aca0 Mon Sep 17 00:00:00 2001 From: David Read Date: Thu, 20 Nov 2014 14:53:12 +0000 Subject: [PATCH] [#2072] Fix resource_status test that fails second time without --reset-db. celery_taskmeta not needed. --- ckan/tests/logic/test_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/tests/logic/test_action.py b/ckan/tests/logic/test_action.py index 9b3d4476f16..ae2990aa861 100644 --- a/ckan/tests/logic/test_action.py +++ b/ckan/tests/logic/test_action.py @@ -1039,7 +1039,7 @@ def test_40_task_resource_status(self): ## need to do inserts as setting up an embedded celery is too much for these tests model.Session.connection().execute( '''INSERT INTO task_status (id, entity_id, entity_type, task_type, key, value, state, error, last_updated) VALUES ('5753adae-cd0d-4327-915d-edd832d1c9a3', '749cdcf2-3fc8-44ae-aed0-5eff8cc5032c', 'resource', 'qa', 'celery_task_id', '51f2105d-85b1-4393-b821-ac11475919d9', NULL, '', '2012-04-20 21:32:45.553986'); - INSERT INTO celery_taskmeta (id, task_id, status, result, date_done, traceback) VALUES (2, '51f2105d-85b1-4393-b821-ac11475919d9', 'FAILURE', '52e', '2012-04-20 21:33:01.622557', 'Traceback')''' + ''' ) model.Session.commit() res = json.loads(self.app.post('/api/action/resource_status_show',