1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

fix index.md bug && update url wikis-->published

This commit is contained in:
ilearnit
2019-04-24 08:40:23 +00:00
parent abff0ecad5
commit fdff270e5c
12 changed files with 33 additions and 23 deletions

View File

@@ -29,7 +29,7 @@ class WikisViewTest(BaseTestCase):
json_resp = json.loads(resp.content)
assert len(json_resp['data']) == 1
assert json_resp['data'][0]['name'] == wiki.name
assert 'wikis/test-wiki' in json_resp['data'][0]['link']
assert 'published/test-wiki' in json_resp['data'][0]['link']
assert json_resp['data'][0]['owner'] == self.user.username
print json_resp['data'][0]['created_at']
assert json_resp['data'][0]['created_at'] is not None
@@ -53,7 +53,7 @@ class WikisViewTest(BaseTestCase):
json_resp = json.loads(resp.content)
assert len(json_resp['data']) == 1
assert json_resp['data'][0]['name'] == wiki.name
assert 'wikis/test-wiki' in json_resp['data'][0]['link']
assert 'published/test-wiki' in json_resp['data'][0]['link']
assert json_resp['data'][0]['owner'] == self.user.username
def test_can_add(self):