File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,6 @@ def create_tests(cls):
186
186
187
187
class TestParsingErrors (AsyncPyMongoTestCase ):
188
188
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 ()
195
189
with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: an IP address is not" ):
196
190
client = self .simple_client ("mongodb+srv://127.0.0.1" )
197
191
await client .aconnect ()
Original file line number Diff line number Diff line change @@ -184,12 +184,6 @@ def create_tests(cls):
184
184
185
185
class TestParsingErrors (PyMongoTestCase ):
186
186
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 ()
193
187
with self .assertRaisesRegex (ConfigurationError , "Invalid URI host: an IP address is not" ):
194
188
client = self .simple_client ("mongodb+srv://127.0.0.1" )
195
189
client ._connect ()
You can’t perform that action at this time.
0 commit comments