use oai: identifiers
[wolnelektury.git] / apps / catalogue / tests / book_import.py
index 6ece328..c8689ea 100644 (file)
@@ -298,7 +298,8 @@ class BookImportGenerateTest(WLTestCase):
 
     def test_custom_pdf(self):
         from catalogue.tasks import build_custom_pdf
-        out = models.get_dynamic_path(None, 'test-custom', ext='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)):