File tree 1 file changed +1
-17
lines changed
zulip_bots/zulip_bots/tests
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,4 @@ def test_resolve_bot_path(self) -> None:
12
12
expected_bot_name = "helloworld"
13
13
expected_bot_path_and_name = (expected_bot_path , expected_bot_name )
14
14
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 )
You can’t perform that action at this time.
0 commit comments