-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: test case no report and linter issues!
- Loading branch information
1 parent
52d8b6e
commit 59ad411
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from unittest import TestCase | ||
|
||
from utils.creds import get_mongo_credentials | ||
|
||
|
||
class TestLoadCredentials(TestCase): | ||
def test_creds_non_empty(self): | ||
creds = get_mongo_credentials() | ||
|
||
self.assertIsNotNone(creds["user"]) | ||
self.assertIsNotNone(creds["password"]) | ||
self.assertIsNotNone(creds["host"]) | ||
self.assertIsNotNone(creds["port"]) | ||
self.assertNotEqual(creds["connection_str"], "mongodb://None:None@None:None") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters