Give the test document a filename

pull/1460/head
Karl Hobley 2015-07-02 11:00:25 +01:00
rodzic 60e2d81052
commit db1aeda4af
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -616,7 +616,8 @@
"model": "wagtaildocs.Document",
"fields": {
"title": "test document",
"created_at": "2014-01-01T12:00:00.000Z"
"created_at": "2014-01-01T12:00:00.000Z",
"file": "documents/test.pdf"
}
},
{

Wyświetl plik

@ -679,7 +679,7 @@ class TestDocumentRichTextLinkHandler(TestCase):
True
)
self.assertEqual(result,
'<a data-linktype="document" data-id="1" href="/documents/1/">')
'<a data-linktype="document" data-id="1" href="/documents/1/test.pdf">')
def test_expand_db_attributes_not_for_editor(self):
result = DocumentLinkHandler.expand_db_attributes(
@ -687,4 +687,4 @@ class TestDocumentRichTextLinkHandler(TestCase):
False
)
self.assertEqual(result,
'<a href="/documents/1/">')
'<a href="/documents/1/test.pdf">')