Skip to content

Commit

Permalink
fix: corrected the WPS warnings, issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Mael MADON authored and Mema5 committed Feb 24, 2020
1 parent d3b8433 commit 1af8ffc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
WrongStringTokenVisitor,
)


@pytest.mark.parametrize('modifier', [
'b',
'f',
Expand Down Expand Up @@ -46,10 +47,10 @@ def test_correct_prefix(
'fr',
])
@pytest.mark.parametrize('primitive', [
'{0}"\\"',
"{0}'\\'",
'{0}"Big \\text"',
"{0}'Format \\123'",
'{0}"\n"',
"{0}'\n'",
'{0}"Big \ntext"',
"{0}'Format \n123'",
])
def test_correct_prefix_raw_string(
parse_tokens,
Expand All @@ -69,6 +70,7 @@ def test_correct_prefix_raw_string(

assert_errors(visitor, [])


@pytest.mark.parametrize('modifier', [
'B',
'F',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_unicode_prefix(

@pytest.mark.parametrize('primitive', [
'"name"',
'r"text with escape carac \\"',
'r"text with escape carac \n"',
"b'unicode'",
'"u"',
'"12"',
Expand Down

0 comments on commit 1af8ffc

Please sign in to comment.