Skip to content

Commit

Permalink
fix: lint issues!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed May 21, 2024
1 parent ca5ea67 commit aa6c1be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tc_messageBroker/rabbit_mq/saga/saga_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def next(
the publish methods that are from the RabbitMQ
call_function : Callable
a function to be called when the message recieved
**kwargs :
**kwargs :
test_mode : bool
testing the function indicates that we wouldn't read or write on DB
default is False
Expand Down
3 changes: 2 additions & 1 deletion tc_messageBroker/utils/credentials.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dotenv import load_dotenv
import os


def load_mongo_credentials():
"""
load mongo db credentials from .env
Expand Down Expand Up @@ -33,4 +34,4 @@ def load_mongo_credentials():
connection = f"mongodb://{user}:{password}@{host}:{port}"
mongo_creds["connection_str"] = connection

return mongo_creds
return mongo_creds
5 changes: 1 addition & 4 deletions tests/unit/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ def test_non_none_values(self):
self.assertIsNotNone(creds["password"])
self.assertIsNotNone(creds["host"])
self.assertIsNotNone(creds["port"])
self.assertNotEqual(
creds["connection_str"],
"mongodb://None:None@None:None"
)
self.assertNotEqual(creds["connection_str"], "mongodb://None:None@None:None")

0 comments on commit aa6c1be

Please sign in to comment.