Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
safwanrahman committed Oct 1, 2023
1 parent c05b9e2 commit 6f6e4c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,10 @@ def should_index_object(self, obj):
]
self.assertTrue(article1.slug in slugs)
self.assertTrue(article2.slug not in slugs)
data_body = mock_bulk.call_args[1]['body']
self.assertTrue(article1.slug in data_body)
self.assertTrue(article2.slug not in data_body)

class RealTimeDocTypeTestCase(BaseDocTypeTestCase, TestCase):
TARGET_PROCESSOR = 'django_elasticsearch_dsl.signals.RealTimeSignalProcessor'


class CeleryDocTypeTestCase(BaseDocTypeTestCase, TestCase):
TARGET_PROCESSOR = 'django_elasticsearch_dsl.signals.CelerySignalProcessor'
TARGET_PROCESSOR = 'django_elasticsearch_dsl.signals.CelerySignalProcessor'

0 comments on commit 6f6e4c8

Please sign in to comment.