Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Commit

Permalink
reverting template loaders after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Apr 13, 2012
1 parent c6236fa commit 18b03ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recommends/tests/tests.py
Expand Up @@ -35,6 +35,11 @@ def setUp(self):
self.provider = recommendation_registry.get_provider_for_content(RecProduct)
recommends_precompute()

def tearDown(self):
from django.template import loader
loader.template_source_loaders = None
super(RecommendsTestCase, self).tearDown()

def test_similarities(self):
similarities = self.provider.storage.get_similarities_for_object(self.mug)
self.assertNotEquals(len(similarities), 0)
Expand Down

0 comments on commit 18b03ec

Please sign in to comment.