summaryrefslogtreecommitdiff
path: root/archaeological_context_records/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r--archaeological_context_records/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py
index bf8864d56..2f676c194 100644
--- a/archaeological_context_records/tests.py
+++ b/archaeological_context_records/tests.py
@@ -28,7 +28,7 @@ from django.core.urlresolvers import reverse
from django.test.client import Client
from ishtar_common.models import IshtarSiteProfile, ImporterModel, \
- UserProfile, ProfileType, Town, Area
+ UserProfile, ProfileType, Town, Area, get_current_profile
from archaeological_operations.tests import OperationInitTest, \
ImportTest, FILE_TOWNS_FIXTURES, FILE_FIXTURES, OPERATION_TOWNS_FIXTURES
@@ -293,7 +293,9 @@ class ContextRecordTest(ContextRecordInit, TestCase):
cr.operation.code_patriarche = "PATRIARCHE"
cr.operation.save()
cr = models.ContextRecord.objects.get(pk=cr.pk)
- self.assertIn(settings.ISHTAR_OPE_PREFIX.lower() + "patriarch",
+
+ profile = get_current_profile()
+ self.assertIn(profile.operation_prefix.lower() + "patriarch",
cr.search_vector)
def test_upstream_cache_update(self):