Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_hipchat_importer: Fix a type: ignore issue.

Anders Kaseorgff324328cbc1
diff --git a/zerver/tests/test_hipchat_importer.py b/zerver/tests/test_hipchat_importer.py
index 55657729f18..d15941e3975 100644
--- a/zerver/tests/test_hipchat_importer.py
+++ b/zerver/tests/test_hipchat_importer.py
@@ -12,7 +12,7 @@ class HipChatImporter(ZulipTestCase):
user_handler = UserHandler()
user_id_mapper = IdMapper()
- user_id_mapper.has = lambda key: True # type: ignore[assignment] # it's just a stub
+ self.assertEqual(user_id_mapper.get(1), 1)
# Simulate a "normal" user first.
user_with_id = dict(