From 094b2da1d6e72a7f8211033324fd702cc6666983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=98=CE=91=CE=9D=CE=91=CE=A3=CE=97=CE=A3=20=CE=91=CE=A1?= =?UTF-8?q?=CE=93=CE=A5=CE=A1=CE=99=CE=9F=CE=A5?= Date: Tue, 28 May 2024 14:27:36 +0300 Subject: [PATCH] Update tests after checks with mypy, pyright. --- tests/test_connection_utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_connection_utils.py b/tests/test_connection_utils.py index acccc5b..b604185 100644 --- a/tests/test_connection_utils.py +++ b/tests/test_connection_utils.py @@ -1,7 +1,5 @@ """ Functions to test the connections to the remote servers and to mongo Databases. -Make sure to have the credentials.json file in the config folder. -Use the template_credentials.json file to create your own credentials.json file. """ import json @@ -12,7 +10,7 @@ import pytest from pymongo.collection import Collection from pymongo.database import Database -from sshtunnel import SSHTunnelForwarder +from sshtunnel import SSHTunnelForwarder # type: ignore INIT_CHECK_DATETIME = datetime(2022, 2, 10, 0, 0, 0, 0) @@ -114,7 +112,7 @@ def test_connect_to_remote_db( db_name: str = credentials[database_schema]["mongodbDatabase"] # Connect to the MongoDB database - db_client = pymongo.MongoClient( + db_client: pymongo.MongoClient = pymongo.MongoClient( host="localhost", port=ssh_connection_instance.local_bind_port, username=credentials[database_schema]["mongodbUser"],