Skip to content

Commit

Permalink
delete useless test (tested by django_celery_results)
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jan 29, 2018
1 parent 7f39969 commit 50f98e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions geotrek/common/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,3 @@ def test_import_message_exception(self):
class_name='haricot',
module_name='toto'
)

def test_import_return(self):
filename = os.path.join(os.path.dirname(__file__), 'data', 'organism.xls')
task = import_datas.delay('AttachmentParser', filename, 'geotrek.common.tests.test_parsers')

self.assertEqual(task.status, 'SUCCESS')
self.assertEqual(task.result['parser'], 'AttachmentParser')
self.assertEqual(task.result['filename'], 'organism.xls')
self.assertEqual(task.result['current'], 100)
self.assertEqual(task.result['total'], 100)
self.assertEqual(task.result['name'], 'geotrek.common.import-file')

0 comments on commit 50f98e4

Please sign in to comment.