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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user