From 0b9bc569593ecc4f889e1068569a8cc686985b73 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 4 Oct 2017 13:36:14 +0200 Subject: [PATCH] Test sub-directory files in user diretories --- src/Test/TestContent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Test/TestContent.py b/src/Test/TestContent.py index 82229623..7c46e022 100644 --- a/src/Test/TestContent.py +++ b/src/Test/TestContent.py @@ -131,6 +131,9 @@ class TestContent: def testFileInfo(self, site): assert "sha512" in site.content_manager.getFileInfo("index.html") + assert site.content_manager.getFileInfo("data/img/domain.png")["content_inner_path"] == "/content.json" + assert site.content_manager.getFileInfo("data/users/hello.png")["content_inner_path"] == "data/users/content.json" + assert site.content_manager.getFileInfo("data/users/content.json")["content_inner_path"] == "data/users/content.json" assert not site.content_manager.getFileInfo("notexist") # Optional file