Skip to content

Commit 7890771

Browse files
committed
Test permissions of websocket
1 parent 376fd0d commit 7890771

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Test/TestUiWebsocket.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
import pytest
3+
4+
@pytest.mark.usefixtures("resetSettings")
5+
class TestUiWebsocket:
6+
def testPermission(self, ui_websocket):
7+
res = ui_websocket.testAction("ping")
8+
assert res == "pong"
9+
10+
res = ui_websocket.testAction("certList")
11+
assert "You don't have permission" in res["error"]

0 commit comments

Comments
 (0)