diff --git a/tests/integration/sharding_tests/helpers.py b/tests/integration/sharding_tests/helpers.py index cd012ab37..7dc150194 100644 --- a/tests/integration/sharding_tests/helpers.py +++ b/tests/integration/sharding_tests/helpers.py @@ -1,8 +1,10 @@ #!/usr/bin/env python3 # Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. -from pytest_operator.plugin import OpsTest from urllib.parse import quote_plus + +from pytest_operator.plugin import OpsTest + from ..helpers import get_password MONGOS_PORT = 27018 diff --git a/tests/integration/sharding_tests/test_sharding.py b/tests/integration/sharding_tests/test_sharding.py index d3613eb66..9f268e4d7 100644 --- a/tests/integration/sharding_tests/test_sharding.py +++ b/tests/integration/sharding_tests/test_sharding.py @@ -4,6 +4,7 @@ import pytest from pymongo import MongoClient from pytest_operator.plugin import OpsTest + from .helpers import generate_connection_string SHARD_ONE_APP_NAME = "shard-one" @@ -65,7 +66,7 @@ async def test_cluster_active(ops_test: OpsTest) -> None: async def test_sharding(ops_test: OpsTest) -> None: - """Tests writing data to mongos gets propogated to shards.""" + """Tests writing data to mongos gets propagated to shards.""" # write data to mongos router mongos_connection_string = await generate_connection_string( ops_test, app_name=CONFIG_SERVER_APP_NAME, mongos=True