Skip to content

Commit

Permalink
Update tests after checks with mypy, pyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
argythana committed May 28, 2024
1 parent 4ba555d commit 094b2da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_connection_utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 094b2da

Please sign in to comment.