Remove missing optional files from content.json on cloning
This commit is contained in:
parent
eae6a34bfc
commit
cf7d194dbf
2 changed files with 6 additions and 2 deletions
|
@ -29,6 +29,10 @@ class TestSite:
|
|||
assert new_site.storage.verifyFiles()["bad_files"] == [] # No bad files allowed
|
||||
assert new_site.storage.query("SELECT * FROM keyvalue WHERE key = 'title'").fetchone()["value"] == "MyZeroBlog"
|
||||
|
||||
# Optional files should be removed
|
||||
|
||||
assert len(new_site.storage.loadJson("content.json").get("files_optional", {})) == 0
|
||||
|
||||
# Test re-cloning (updating)
|
||||
|
||||
# Changes in non-data files should be overwritten
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue