Commit db16cb4f by Matthew Piatetsky

Revert "Temporarily remove updating index alias"

This reverts commit 349b9aa6.
parent 349b9aa6
......@@ -28,9 +28,8 @@ class Command(HaystackCommand):
super(Command, self).handle(*items, **options)
# Set the alias (from settings) to the timestamped catalog.
# Temporarily commenting this out to test if update index command is still broken
# for backend, index, alias in alias_mappings:
# self.set_alias(backend, alias, index)
for backend, index, alias in alias_mappings:
self.set_alias(backend, alias, index)
def set_alias(self, backend, alias, index):
"""
......
import pytest
from django.conf import settings
from django.core.management import call_command
from django.test import TestCase
......@@ -8,7 +7,6 @@ from freezegun import freeze_time
from course_discovery.apps.edx_haystack_extensions.tests.mixins import SearchIndexTestMixin
@pytest.mark.skip(reason="Temporarily disabling for testing update index command")
class UpdateIndexTests(SearchIndexTestMixin, TestCase):
@freeze_time('2016-06-21')
def test_handle(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment