Skip to content

Commit eb3086d

Browse files
committed
add test for type
1 parent bddc892 commit eb3086d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_uri_parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ def test_port_with_whitespace(self):
555555
with self.assertRaisesRegex(ValueError, r"Port contains whitespace character: '\\n'"):
556556
parse_uri("mongodb://localhost:27\n017")
557557

558+
def test_parse_uri_options_type(self):
559+
opts = parse_uri("mongodb://localhost:27017")["options"]
560+
self.assertIsInstance(opts, dict)
561+
558562

559563
if __name__ == "__main__":
560564
unittest.main()

0 commit comments

Comments
 (0)