Skip to content

Commit

Permalink
OeX_ES-28: resolves event-tracking error during local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Golub-Sergey committed Aug 4, 2020
1 parent 9026820 commit 6d218df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion search/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,15 @@ def test_search_from_url(self):
@override_settings(COURSEWARE_INFO_INDEX_NAME=TEST_INDEX_NAME)
@ddt.ddt
class ElasticSearchUrlTest(TestCase, SearcherMixin):
"""Elastic-specific tests"""
"""
Elastic-specific tests
"""

def setUp(self):
super(ElasticSearchUrlTest, self).setUp()
patcher = patch('search.views.track')
self.mock_tracker = patcher.start()
self.addCleanup(patcher.stop)
self.searcher.index([
{
"course": "ABC/DEF/GHI",
Expand Down

0 comments on commit 6d218df

Please sign in to comment.