Adding upstream version 1.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
fc6d3907af
commit
3c10eca007
20 changed files with 536 additions and 80 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue