File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,12 +186,6 @@ def create_tests(cls):
186186
187187class TestParsingErrors (AsyncPyMongoTestCase ):
188188 async def test_invalid_host (self ):
189- with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: mongodb is not" ):
190- client = self .simple_client ("mongodb+srv://mongodb" )
191- await client .aconnect ()
192- with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: mongodb.com is not" ):
193- client = self .simple_client ("mongodb+srv://mongodb.com" )
194- await client .aconnect ()
195189 with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: an IP address is not" ):
196190 client = self .simple_client ("mongodb+srv://127.0.0.1" )
197191 await client .aconnect ()
Original file line number Diff line number Diff line change @@ -184,12 +184,6 @@ def create_tests(cls):
184184
185185class TestParsingErrors (PyMongoTestCase ):
186186 def test_invalid_host (self ):
187- with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: mongodb is not" ):
188- client = self .simple_client ("mongodb+srv://mongodb" )
189- client ._connect ()
190- with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: mongodb.com is not" ):
191- client = self .simple_client ("mongodb+srv://mongodb.com" )
192- client ._connect ()
193187 with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: an IP address is not" ):
194188 client = self .simple_client ("mongodb+srv://127.0.0.1" )
195189 client ._connect ()
You can’t perform that action at this time.
0 commit comments