Skip to content

Commit e8be81a

Browse files
committed
add update test
1 parent a557628 commit e8be81a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_update.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import json
2+
import requests
3+
4+
5+
def test_update_shutdown(base_url, agent):
6+
7+
resp = requests.post(f"{base_url}/update")
8+
assert resp.status_code == 200
9+
info = resp.json()
10+
assert "Please wait a moment while the agent reboots itself" in info['success']
11+

0 commit comments

Comments
 (0)