Skip to content

Commit 8f9b0f7

Browse files
committed
Move import to top
1 parent 13c756c commit 8f9b0f7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/runfiles/runfiles_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from typing import Any, List, Optional
1919

2020
from python.runfiles import runfiles
21+
from python.runfiles.runfiles import _RepositoryMapping
2122

2223

2324
class 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

0 commit comments

Comments
 (0)