test fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 9 Aug 2012 15:59:53 +0000 (17:59 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 9 Aug 2012 15:59:59 +0000 (17:59 +0200)
apps/catalogue/tests/book_import.py

index 904c1bf..c8689ea 100644 (file)
@@ -297,8 +297,9 @@ class BookImportGenerateTest(WLTestCase):
         self.assertTrue(path.exists(parent.pdf_file.path))
 
     def test_custom_pdf(self):
         self.assertTrue(path.exists(parent.pdf_file.path))
 
     def test_custom_pdf(self):
-        from catalogue.utils import build_custom_pdf
-        out = models.get_dynamic_path(None, 'test-custom', ext='pdf')
+        from catalogue.tasks import build_custom_pdf
+        from catalogue.utils import get_dynamic_path
+        out = get_dynamic_path(None, 'test-custom', ext='pdf')
         absoulute_path = path.join(settings.MEDIA_ROOT, out)
         
         if not path.exists(path.dirname(absoulute_path)):
         absoulute_path = path.join(settings.MEDIA_ROOT, out)
         
         if not path.exists(path.dirname(absoulute_path)):