1
0
Fork 0

Adding upstream version 1.12.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 17:08:57 +01:00
parent fc6d3907af
commit 3c10eca007
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
20 changed files with 536 additions and 80 deletions

View file

@ -1,4 +1,5 @@
import os
import re
import tempfile
from textwrap import dedent
@ -17,6 +18,22 @@ TIMEOUT = 2
HISTORY_FILE = ".iredis_history"
@pytest.fixture
def token_should_match():
def match_func(token, tomatch):
assert re.fullmatch(token, tomatch) is not None
return match_func
@pytest.fixture
def token_should_not_match():
def match_func(token, tomatch):
assert re.fullmatch(token, tomatch) is None
return match_func
@pytest.fixture
def judge_command():
def judge_command_func(input_text, expect):