diff --git a/tests/integration/helpers/external_sources.py b/tests/integration/helpers/external_sources.py index e31395ca8f2..6c6435e0d78 100644 --- a/tests/integration/helpers/external_sources.py +++ b/tests/integration/helpers/external_sources.py @@ -238,10 +238,12 @@ class SourceMongo(ExternalSource): self.db = self.connection["test"] user_info = self.db.command("usersInfo", self.user) - if user_info['users']: + if user_info["users"]: self.db.command("updateUser", self.user, pwd=self.password) else: - self.db.command("createUser", self.user, pwd=self.password, roles=["readWrite"]) + self.db.command( + "createUser", self.user, pwd=self.password, roles=["readWrite"] + ) self.prepared = True def load_data(self, data, table_name):