From 162d876b6e05f4bacf2473148a989a4e2b93a2ed Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 9 Aug 2012 17:59:53 +0200 Subject: [PATCH 1/1] test fix --- apps/catalogue/tests/book_import.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/catalogue/tests/book_import.py b/apps/catalogue/tests/book_import.py index 904c1bf1d..c8689ea39 100644 --- a/apps/catalogue/tests/book_import.py +++ b/apps/catalogue/tests/book_import.py @@ -297,8 +297,9 @@ class BookImportGenerateTest(WLTestCase): 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)): -- 2.20.1