11mod completion;
2- mod db;
32mod docstring;
43mod find_node;
54mod goto;
@@ -14,7 +13,6 @@ mod signature_help;
1413mod stub_mapping;
1514
1615pub use completion:: completion;
17- pub use db:: Db ;
1816pub use docstring:: get_parameter_documentation;
1917pub use goto:: { goto_declaration, goto_definition, goto_type_definition} ;
2018pub use hover:: hover;
@@ -29,6 +27,7 @@ use ruff_db::files::{File, FileRange};
2927use ruff_text_size:: { Ranged , TextRange } ;
3028use rustc_hash:: FxHashSet ;
3129use std:: ops:: { Deref , DerefMut } ;
30+ use ty_project:: Db ;
3231use ty_python_semantic:: types:: { Type , TypeDefinition } ;
3332
3433/// Information associated with a text range.
@@ -211,13 +210,13 @@ impl HasNavigationTargets for TypeDefinition<'_> {
211210
212211#[ cfg( test) ]
213212mod tests {
214- use crate :: db:: tests:: TestDb ;
215213 use insta:: internals:: SettingsBindDropGuard ;
216214 use ruff_db:: Db ;
217215 use ruff_db:: diagnostic:: { Diagnostic , DiagnosticFormat , DisplayDiagnosticConfig } ;
218216 use ruff_db:: files:: { File , system_path_to_file} ;
219217 use ruff_db:: system:: { DbWithWritableSystem , SystemPath , SystemPathBuf } ;
220218 use ruff_text_size:: TextSize ;
219+ use ty_project:: ProjectMetadata ;
221220 use ty_python_semantic:: {
222221 Program , ProgramSettings , PythonPlatform , PythonVersionWithSource , SearchPathSettings ,
223222 } ;
@@ -231,7 +230,7 @@ mod tests {
231230 }
232231
233232 pub ( super ) struct CursorTest {
234- pub ( super ) db : TestDb ,
233+ pub ( super ) db : ty_project :: TestDb ,
235234 pub ( super ) cursor : Cursor ,
236235 _insta_settings_guard : SettingsBindDropGuard ,
237236 }
@@ -286,7 +285,11 @@ mod tests {
286285
287286 impl CursorTestBuilder {
288287 pub ( super ) fn build ( & self ) -> CursorTest {
289- let mut db = TestDb :: new ( ) ;
288+ let mut db = ty_project:: TestDb :: new ( ProjectMetadata :: new (
289+ "test" . into ( ) ,
290+ SystemPathBuf :: from ( "/" ) ,
291+ ) ) ;
292+
290293 let mut cursor: Option < Cursor > = None ;
291294 for & Source {
292295 ref path,
0 commit comments