Skip to content

Commit

Permalink
Removed unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
romanukes committed Sep 25, 2023
1 parent 4030e6a commit 4fb871b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions t/unit/transport/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,6 @@ def test_replicaset_hosts(self):
assert hostname == 'mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?replicaSet=test_rs' # noqa
assert options['replicaset'] == 'test_rs'

def test_replicaset_hosts_custom_database(self):
url = 'mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/dbname?replicaSet=test_rs' # noqa
channel = _create_mock_connection(url).default_channel
hostname, dbname, options = channel._parse_uri()

assert hostname == 'mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?replicaSet=test_rs' # noqa
assert dbname == 'dbname'
assert options['replicaset'] == 'test_rs'

def test_custom_database(self):
url = 'mongodb://localhost/dbname'
channel = _create_mock_connection(url).default_channel
Expand Down

0 comments on commit 4fb871b

Please sign in to comment.