Skip to content

Commit dac8aff

Browse files
Seppli11sonartech
authored andcommitted
SONARPY-3532 Fix Quality Gate (#680)
GitOrigin-RevId: 56423589bebf74e57c66e4ff3394876c867da53b
1 parent 3f53e97 commit dac8aff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

python-frontend/src/test/java/org/sonar/python/types/v2/matchers/TypeSourcePredicateTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.junit.jupiter.params.provider.Arguments;
2323
import org.junit.jupiter.params.provider.MethodSource;
2424
import org.mockito.Mockito;
25-
import org.sonar.plugins.python.api.SubscriptionContext;
2625
import org.sonar.plugins.python.api.TriBool;
2726
import org.sonar.plugins.python.api.types.v2.ObjectType;
2827
import org.sonar.plugins.python.api.types.v2.PythonType;
@@ -58,7 +57,6 @@ void testNonMatchingTypeSources(TypeSource typeTypeSource, TypeSource predicateT
5857
void testThroughTypeMatchers() {
5958
PythonType typeWithExactSource = createTypeWithSource(TypeSource.EXACT);
6059
PythonType typeWithTypeHintSource = createTypeWithSource(TypeSource.TYPE_HINT);
61-
SubscriptionContext ctx = Mockito.mock(SubscriptionContext.class);
6260
TypePredicateContext predicateContext = TypePredicateContext.of(Mockito.mock(org.sonar.python.semantic.v2.typetable.TypeTable.class));
6361

6462
assertThat(MatchersTestUtils.getPredicate(TypeMatchers.hasTypeSource(TypeSource.EXACT)).check(typeWithExactSource, predicateContext)).isEqualTo(TriBool.TRUE);

0 commit comments

Comments
 (0)