test: add ft get hardware token api

This commit is contained in:
eeff
2023-10-30 14:31:17 +08:00
parent dae11c6614
commit 26b938927d
+5
View File
@@ -27,6 +27,11 @@ def change_password(new_password, user='admin', old_password='0000', jwt=config.
return requests.post(url=config.BASE_URL + '/api/v2/password', headers={"Authorization": jwt}, json={"name": user, "old_pass": old_password, "new_pass": new_password})
@gen_check
def get_hwtoken(jwt=config.default_jwt):
return requests.get(url=config.BASE_URL + '/api/v2/hwtoken', headers={"Authorization": jwt})
@gen_check
def get_license(jwt=config.default_jwt):
return requests.get(url=config.BASE_URL + '/api/v2/license', headers={"Authorization": jwt})