Test permissions of websocket
This commit is contained in:
parent
376fd0d439
commit
7890771faa
1 changed files with 11 additions and 0 deletions
11
src/Test/TestUiWebsocket.py
Normal file
11
src/Test/TestUiWebsocket.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import sys
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.mark.usefixtures("resetSettings")
|
||||||
|
class TestUiWebsocket:
|
||||||
|
def testPermission(self, ui_websocket):
|
||||||
|
res = ui_websocket.testAction("ping")
|
||||||
|
assert res == "pong"
|
||||||
|
|
||||||
|
res = ui_websocket.testAction("certList")
|
||||||
|
assert "You don't have permission" in res["error"]
|
Loading…
Reference in a new issue