fixing regex tests v2
This commit is contained in:
parent
54276e813c
commit
55cc962665
|
@ -151,8 +151,8 @@ def test_javadoc_to_displayname(inp: str, output: str):
|
||||||
|
|
||||||
@pytest.mark.parametrize(('inp','output'), JAVADOC_TO_DISPLAYNAME)
|
@pytest.mark.parametrize(('inp','output'), JAVADOC_TO_DISPLAYNAME)
|
||||||
def test_match_input(inp: str, output: str):
|
def test_match_input(inp: str, output: str):
|
||||||
assert TEST_PATTERN.find(inp)
|
assert TEST_PATTERN.search(inp)
|
||||||
|
|
||||||
@pytest.mark.parametrize(('inp','output'), JAVADOC_TO_DISPLAYNAME)
|
@pytest.mark.parametrize(('inp','output'), JAVADOC_TO_DISPLAYNAME)
|
||||||
def test_match_output(inp: str, output: str):
|
def test_match_output(inp: str, output: str):
|
||||||
assert TEST_PATTERN.find(output)
|
assert TEST_PATTERN.search(output)
|
||||||
|
|
|
@ -35,8 +35,8 @@ def test_javadoc_to_displayname(inp: str, output: str):
|
||||||
|
|
||||||
@pytest.mark.parametrize(('inp','output'), NAME_FROM_COMMENT)
|
@pytest.mark.parametrize(('inp','output'), NAME_FROM_COMMENT)
|
||||||
def test_match_input(inp: str, output: str):
|
def test_match_input(inp: str, output: str):
|
||||||
assert TEST_PATTERN.find(inp)
|
assert TEST_PATTERN.search(inp)
|
||||||
|
|
||||||
@pytest.mark.parametrize(('inp','output'), NAME_FROM_COMMENT)
|
@pytest.mark.parametrize(('inp','output'), NAME_FROM_COMMENT)
|
||||||
def test_match_output(inp: str, output: str):
|
def test_match_output(inp: str, output: str):
|
||||||
assert TEST_PATTERN.find(output)
|
assert TEST_PATTERN.search(output)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user