Skip to content

Commit

Permalink
Test sub-directory files in user diretories
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Oct 4, 2017
1 parent e9beeb8 commit 0b9bc56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Test/TestContent.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def testSignOptionalFiles(self, site):

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
Expand Down

0 comments on commit 0b9bc56

Please sign in to comment.