1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

Sys admin react reconstruct (#3916)

* sysadmin reconstruct info page

* optimize frontend code, add license post api response

* update test case

* optimize js code
This commit is contained in:
Leo
2019-07-25 16:33:13 +08:00
committed by llj
parent ad897734ea
commit f47e728b4e
8 changed files with 226 additions and 14 deletions

View File

@@ -26,7 +26,11 @@ class AdminLicenseTest(BaseTestCase):
resp = self.client.post(url, {'license': f})
json_resp = json.loads(resp.content)
assert json_resp['success'] is True
assert json_resp['with_license'] is True
assert json_resp['license_expiration'] is not None
assert json_resp['license_mode'] is not None
assert json_resp['license_maxusers'] is not None
assert json_resp['license_to'] is not None
assert os.path.exists(LICENSE_PATH)
@patch.object(license_api, 'ccnet_api')