Added a test for resolving from a Python *.pyi stub to a Python file (PY-16402)

This commit is contained in:
Andrey Vlasovskikh
2015-07-08 14:41:21 +03:00
parent 2df926971f
commit 69b0243b5d
3 changed files with 11 additions and 0 deletions
@@ -0,0 +1,5 @@
from m1 import C
def f(x: C) -> None: ...
# <ref>
@@ -0,0 +1,2 @@
class C:
pass
@@ -35,4 +35,8 @@ public class PyiResolveTest extends PyMultiFileResolveTestCase {
public void testBuiltinInt() {
assertResolvesTo(PyClass.class, "int");
}
public void testFromPyiToClassInPy() {
assertResolvesTo(PyClass.class, "C");
}
}