Test permissions of websocket

This commit is contained in:
shortcutme 2019-08-26 03:11:24 +02:00
parent 376fd0d439
commit 7890771faa
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View 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"]