File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1818from typing import Any , List , Optional
1919
2020from python .runfiles import runfiles
21+ from python .runfiles .runfiles import _RepositoryMapping
2122
2223
2324class RunfilesTest (unittest .TestCase ):
@@ -638,10 +639,6 @@ def testDirectoryBasedRlocationWithCompactRepoMappingOrderMatters(self) -> None:
638639
639640 def testRepositoryMappingLookup (self ) -> None :
640641 """Test _RepositoryMapping.lookup() method for both exact and prefix-based mappings."""
641- from python .runfiles .runfiles import (
642- _RepositoryMapping ,
643- )
644-
645642 exact_mappings = {
646643 ("" , "my_workspace" ): "_main" ,
647644 ("" , "config_lib" ): "config_lib~1.0.0" ,
@@ -683,7 +680,7 @@ def testRepositoryMappingLookup(self) -> None:
683680 # Test empty mapping
684681 empty_mapping = _RepositoryMapping ({}, {})
685682 self .assertIsNone (empty_mapping .lookup ("any" , "repo" ))
686-
683+
687684 # Test is_empty() method
688685 self .assertFalse (repo_mapping .is_empty ()) # Should have mappings
689686 self .assertTrue (empty_mapping .is_empty ()) # Should be empty
You can’t perform that action at this time.
0 commit comments