@@ -1017,7 +1017,7 @@ public async Task FromDotInRootWithInitPy() {
1017
1017
1018
1018
var cs = new CompletionSource ( new PlainTextDocumentationSource ( ) , ServerSettings . completion , Services ) ;
1019
1019
var result = cs . GetCompletions ( analysis , new SourceLocation ( 1 , 7 ) ) ;
1020
- result . Should ( ) . OnlyHaveLabels ( "__dict__" , "__file__" , "__doc__" , "__package__" , "__debug__" , "__name__" , "__path__" , "__spec__" , "module1" ) ;
1020
+ result . Should ( ) . OnlyHaveLabels ( "__dict__" , "__file__" , "__doc__" , "__package__" , "__debug__" , "__name__" , "__path__" , "__spec__" ) ;
1021
1021
}
1022
1022
1023
1023
[ TestMethod , Priority ( 0 ) ]
@@ -1511,39 +1511,5 @@ def print_EQ2(cls):
1511
1511
result = cs . GetCompletions ( analysis , new SourceLocation ( 12 , 13 ) ) ;
1512
1512
result . Should ( ) . HaveLabels ( "__EQ" , "__NOT_EQ" , "__OP_LIST" ) ;
1513
1513
}
1514
-
1515
- [ DataTestMethod , Priority ( 0 ) ]
1516
- [ DataRow ( true ) ]
1517
- [ DataRow ( false ) ]
1518
- public async Task ImplicitSubmodule ( bool imported ) {
1519
- var appUri = TestData . GetTestSpecificUri ( "app.py" ) ;
1520
- await TestData . CreateTestSpecificFileAsync (
1521
- Path . Combine ( "package" , "__init__.py" ) ,
1522
- imported ? "import package.m1 as m2" : string . Empty
1523
- ) ;
1524
- await TestData . CreateTestSpecificFileAsync ( Path . Combine ( "package" , "m1" , "__init__.py" ) , "x = 1" ) ;
1525
-
1526
- await CreateServicesAsync ( PythonVersions . LatestAvailable3X ) ;
1527
- var rdt = Services . GetService < IRunningDocumentTable > ( ) ;
1528
- const string code = @"
1529
- import package
1530
- package.
1531
- package.m1.
1532
- " ;
1533
- var doc = rdt . OpenDocument ( appUri , code ) ;
1534
-
1535
- await Services . GetService < IPythonAnalyzer > ( ) . WaitForCompleteAnalysisAsync ( ) ;
1536
- var analysis = await doc . GetAnalysisAsync ( Timeout . Infinite ) ;
1537
- var cs = new CompletionSource ( new PlainTextDocumentationSource ( ) , ServerSettings . completion , Services ) ;
1538
-
1539
- var result = cs . GetCompletions ( analysis , new SourceLocation ( 3 , 9 ) ) ;
1540
- result . Should ( ) . HaveLabels ( "m1" ) ;
1541
- result = cs . GetCompletions ( analysis , new SourceLocation ( 4 , 12 ) ) ;
1542
- if ( imported ) {
1543
- result . Should ( ) . HaveLabels ( "x" ) ;
1544
- } else {
1545
- result . Should ( ) . NotContainLabels ( "x" ) ;
1546
- }
1547
- }
1548
1514
}
1549
1515
}
0 commit comments