Skip to content

Commit

Permalink
Removed unnecessary test
Browse files Browse the repository at this point in the history
Haven't removed other tests because those are needed for complete coverage
  • Loading branch information
FieldMarshallObvious committed Apr 9, 2024
1 parent e0ba974 commit 17c31aa
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,21 @@
)

# Correct:
correct_ternary_elipses = """
a if ... else c
"""

correct_not_equal = """
a if a != b else c
"""

correct_ternary_none = """
a.split() if a is not None else None
"""

# Wrong:
wrong_ternary_same_values = """
a if ... else a
"""

wrong_ternary_useless_comparison_not_eq = """
a if a != b else b
"""
wrong_ternary_useless_comparison_eq = """
b if a == b else a
"""

wrong_ternarny_none = """
a if a is not None else None
"""


@pytest.mark.parametrize('code', [
correct_ternary_elipses,
correct_not_equal,
correct_ternary_none,
])
def test_correct_ternary(
code,
Expand All @@ -58,10 +40,8 @@ def test_correct_ternary(


@pytest.mark.parametrize('code', [
wrong_ternary_same_values,
wrong_ternary_useless_comparison_not_eq,
wrong_ternary_useless_comparison_eq,
wrong_ternarny_none,
])
def test_wrong_ternary(
code,
Expand Down

0 comments on commit 17c31aa

Please sign in to comment.