Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reverting template loaders after tests

  • Loading branch information...
commit 18b03ecb46f8f33f0fa6eb17d5763a4e4b07e40f 1 parent c6236fa
@gugu gugu authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 recommends/tests/tests.py
View
5 recommends/tests/tests.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.