Skip to content

Commit 1648cfd

Browse files
Rishav KumarRishav Kumar
Rishav Kumar
authored and
Rishav Kumar
committed
remove UT
1 parent a186f24 commit 1648cfd

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

zulip_bots/zulip_bots/tests/test_finder.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,4 @@ def test_resolve_bot_path(self) -> None:
1212
expected_bot_name = "helloworld"
1313
expected_bot_path_and_name = (expected_bot_path, expected_bot_name)
1414
actual_bot_path_and_name = finder.resolve_bot_path("helloworld")
15-
self.assertEqual(expected_bot_path_and_name, actual_bot_path_and_name)
16-
17-
18-
def test_import_metadata_standard(self) -> None:
19-
# Simulate Python 3.10 or above by mocking importlib.metadata
20-
with patch("importlib.metadata.metadata", return_value="mocked_metadata") as mock_metadata:
21-
try:
22-
from importlib.metadata import metadata
23-
result = "Using standard library importlib.metadata"
24-
except ImportError:
25-
from importlib_metadata import metadata
26-
result = "Using external importlib_metadata"
27-
28-
# Assert that the correct import was chosen
29-
self.assertEqual(result, "Using standard library importlib.metadata")
30-
self.assertEqual(metadata("some_package"), "mocked_metadata")
31-
mock_metadata.assert_called_once_with("some_package")
15+
self.assertEqual(expected_bot_path_and_name, actual_bot_path_and_name)

0 commit comments

Comments
 (0)