diff --git a/python/helpers/tools/packages b/python/helpers/tools/packages index d42369f77337..cc7e96e7f78e 100644 --- a/python/helpers/tools/packages +++ b/python/helpers/tools/packages @@ -4758,4 +4758,5 @@ jenkins python-jenkins pipeline django-pipeline PIL Pillow robot robotframework -cv2 opencv-python \ No newline at end of file +cv2 opencv-python +ldap pyldap \ No newline at end of file diff --git a/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/requirements.txt b/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/requirements.txt index 2ebbfdce0f72..f6d3d9040501 100644 --- a/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/requirements.txt +++ b/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/requirements.txt @@ -13,4 +13,5 @@ django-simple-captcha Pillow pyzmq robotframework -opencv-python \ No newline at end of file +opencv-python +pyldap \ No newline at end of file diff --git a/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/test1.py b/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/test1.py index df580872b8b4..c917427cabb9 100644 --- a/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/test1.py +++ b/python/testData/inspections/PyPackageRequirementsInspection/MismatchBetweenPackageAndRequirement/test1.py @@ -1,4 +1,4 @@ -import factory +import factory import magic import attr import jenkins @@ -13,4 +13,5 @@ import captcha import PIL import zmq import robot -import cv2 \ No newline at end of file +import cv2 +import ldap \ No newline at end of file diff --git a/python/testSrc/com/jetbrains/python/inspections/PyPackageRequirementsInspectionTest.java b/python/testSrc/com/jetbrains/python/inspections/PyPackageRequirementsInspectionTest.java index 401b6b30cc64..c2427d7dfc9e 100644 --- a/python/testSrc/com/jetbrains/python/inspections/PyPackageRequirementsInspectionTest.java +++ b/python/testSrc/com/jetbrains/python/inspections/PyPackageRequirementsInspectionTest.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2017 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.inspections; import com.intellij.openapi.projectRoots.Sdk; @@ -71,6 +57,7 @@ public class PyPackageRequirementsInspectionTest extends PyInspectionTestCase { } // PY-11963 + // PY-26050 public void testMismatchBetweenPackageAndRequirement() { doMultiFileTest("test1.py"); }