@@ -213,15 +213,16 @@ fn infer_expr_type(db: &dyn SemanticDb, file_id: FileId, expr: &ast::Expr) -> Qu
213
213
214
214
#[ cfg( test) ]
215
215
mod tests {
216
+ use textwrap:: dedent;
217
+
216
218
use crate :: db:: tests:: TestDb ;
217
219
use crate :: db:: { HasJar , SemanticJar } ;
218
220
use crate :: module:: {
219
- set_module_search_paths, ModuleName , ModuleSearchPath , ModuleSearchPathKind ,
221
+ resolve_module , set_module_search_paths, ModuleName , ModuleSearchPath , ModuleSearchPathKind ,
220
222
} ;
221
- use crate :: symbols:: resolve_global_symbol;
223
+ use crate :: symbols:: { resolve_global_symbol, symbol_table , GlobalSymbolId } ;
222
224
use crate :: types:: { infer_symbol_public_type, Type } ;
223
225
use crate :: Name ;
224
- use textwrap:: dedent;
225
226
226
227
// TODO with virtual filesystem we shouldn't have to write files to disk for these
227
228
// tests
@@ -388,15 +389,6 @@ mod tests {
388
389
assert_public_type ( & case, "a" , "x" , "(Literal[1] | Literal[2])" )
389
390
}
390
391
391
- #[ test]
392
- fn resolve_visible_def ( ) -> anyhow:: Result < ( ) > {
393
- let case = create_test ( ) ?;
394
-
395
- write_to_path ( & case, "a.py" , "y = 1; y = 2; x = y" ) ?;
396
-
397
- assert_public_type ( & case, "a" , "x" , "Literal[2]" )
398
- }
399
-
400
392
#[ test]
401
393
fn resolve_visible_def ( ) -> anyhow:: Result < ( ) > {
402
394
let case = create_test ( ) ?;
0 commit comments