From 03f128ff236c1e11982ae057b59be61c16e079f3 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 12 May 2019 03:49:54 -0400 Subject: [PATCH] Fix tests Signed-off-by: Roberto Rosario --- mayan/apps/sources/tests/test_views.py | 2 +- mayan/apps/task_manager/apps.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mayan/apps/sources/tests/test_views.py b/mayan/apps/sources/tests/test_views.py index a9dbbb64a7..d6df9714c5 100644 --- a/mayan/apps/sources/tests/test_views.py +++ b/mayan/apps/sources/tests/test_views.py @@ -318,7 +318,7 @@ class SourcesTestCase(GenericDocumentViewTestCase): def _request_setup_source_create_view(self): return self.post( - kwargs={'pk': SOURCE_CHOICE_WEB_FORM}, + kwargs={'source_type': SOURCE_CHOICE_WEB_FORM}, viewname='sources:setup_source_create', data={ 'enabled': True, 'label': TEST_SOURCE_LABEL, 'uncompress': TEST_SOURCE_UNCOMPRESS_N diff --git a/mayan/apps/task_manager/apps.py b/mayan/apps/task_manager/apps.py index 9eb2ab6a49..00996c6528 100644 --- a/mayan/apps/task_manager/apps.py +++ b/mayan/apps/task_manager/apps.py @@ -34,11 +34,11 @@ class TaskManagerApp(MayanAppConfig): source=CeleryQueue, label=_('Name'), attribute='name' ) SourceColumn( - attribute='is_default_queue', label=_('Default queue?'), + attribute='default_queue', label=_('Default queue?'), source=CeleryQueue, widget=TwoStateWidget ) SourceColumn( - attribute='is_transient', label=_('Is transient?'), + attribute='transient', label=_('Is transient?'), source=CeleryQueue, widget=TwoStateWidget ) SourceColumn(