documentation fix tests because of missing README.md

This commit is contained in:
Antoine Bartuccio 2019-08-12 23:38:37 +02:00
parent 4428a2e89c
commit 8809753108
Signed by: klmp200
GPG Key ID: E7245548C53F904B
1 changed files with 2 additions and 2 deletions

View File

@ -377,12 +377,12 @@ Welcome to the wiki page!
""",
).save()
# Adding README
# Adding README (discuss if really necessary)
p = Page(name="README")
p.save(force_lock=True)
p.view_groups = [settings.SITH_GROUP_PUBLIC_ID]
p.save(force_lock=True)
with open(os.path.join(root_path) + "/README.md", "r") as rm:
with open(os.path.join(root_path) + "/README.rst", "r") as rm:
PageRev(page=p, title="README", author=skia, content=rm.read()).save()
# Subscription