From 17c31aa0dfe652540778087d470cd5ab8af181f4 Mon Sep 17 00:00:00 2001 From: FieldMarshallObvious Date: Tue, 9 Apr 2024 15:35:12 -0500 Subject: [PATCH] Removed unnecessary test Haven't removed other tests because those are needed for complete coverage --- .../test_redundancy/test_redundant_ternary.py | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/tests/test_visitors/test_ast/test_redundancy/test_redundant_ternary.py b/tests/test_visitors/test_ast/test_redundancy/test_redundant_ternary.py index 667d13149..6b93155da 100644 --- a/tests/test_visitors/test_ast/test_redundancy/test_redundant_ternary.py +++ b/tests/test_visitors/test_ast/test_redundancy/test_redundant_ternary.py @@ -8,23 +8,11 @@ ) # 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 """ @@ -32,15 +20,9 @@ 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, @@ -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,