mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-08 18:02:05 +03:00
Add annotations to opensource/fbcode_builder
Reviewed By: shannonzhu Differential Revision: D34224272 fbshipit-source-id: 52e19886ab3d4fb015a557244660dd4357a35c17
This commit is contained in:

committed by
Facebook GitHub Bot
parent
6c86c07528
commit
e77a9fe43a
@@ -10,7 +10,7 @@ from ..buildopts import find_existing_win32_subst_for_path
|
||||
|
||||
|
||||
class Win32SubstTest(unittest.TestCase):
|
||||
def test_no_existing_subst(self):
|
||||
def test_no_existing_subst(self) -> None:
|
||||
self.assertIsNone(
|
||||
find_existing_win32_subst_for_path(
|
||||
r"C:\users\alice\appdata\local\temp\fbcode_builder_getdeps",
|
||||
@@ -24,7 +24,7 @@ class Win32SubstTest(unittest.TestCase):
|
||||
)
|
||||
)
|
||||
|
||||
def test_exact_match_returns_drive_path(self):
|
||||
def test_exact_match_returns_drive_path(self) -> None:
|
||||
self.assertEqual(
|
||||
find_existing_win32_subst_for_path(
|
||||
r"C:\temp\fbcode_builder_getdeps",
|
||||
@@ -40,7 +40,7 @@ class Win32SubstTest(unittest.TestCase):
|
||||
"X:\\",
|
||||
)
|
||||
|
||||
def test_multiple_exact_matches_returns_arbitrary_drive_path(self):
|
||||
def test_multiple_exact_matches_returns_arbitrary_drive_path(self) -> None:
|
||||
self.assertIn(
|
||||
find_existing_win32_subst_for_path(
|
||||
r"C:\temp\fbcode_builder_getdeps",
|
||||
@@ -53,7 +53,7 @@ class Win32SubstTest(unittest.TestCase):
|
||||
("X:\\", "Y:\\", "Z:\\"),
|
||||
)
|
||||
|
||||
def test_drive_letter_is_case_insensitive(self):
|
||||
def test_drive_letter_is_case_insensitive(self) -> None:
|
||||
self.assertEqual(
|
||||
find_existing_win32_subst_for_path(
|
||||
r"C:\temp\fbcode_builder_getdeps",
|
||||
@@ -62,7 +62,7 @@ class Win32SubstTest(unittest.TestCase):
|
||||
"X:\\",
|
||||
)
|
||||
|
||||
def test_path_components_are_case_insensitive(self):
|
||||
def test_path_components_are_case_insensitive(self) -> None:
|
||||
self.assertEqual(
|
||||
find_existing_win32_subst_for_path(
|
||||
r"C:\TEMP\FBCODE_builder_getdeps",
|
||||
|
Reference in New Issue
Block a user