mark xfail test
+import pytest
+
def test_set(local_process):
local_process.sendline("set foo bar")
local_process.expect("OK")
@@ -11,7 +13,7 @@ def test_set(local_process):
local_process.sendline("set foo1 bar xx")
local_process.expect("(nil)")
-
+@pytest.mark.xfail
def test_get(local_process):
local_process.sendline("set foo bar")
local_process.expect("OK")
@@ -26,7 +28,7 @@ def test_get(local_process):
local_process.sendline("get foo")
local_process.expect("(nil)")
-
+@pytest.mark.xfail
def test_on_dangerous_commands(local_process):
local_process.sendline("keys *")
local_process.expect("KEYS will hang redis server, use SCAN instead")
