Skip to content

Commit

Permalink
fix: test case no report and linter issues!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Feb 29, 2024
1 parent 52d8b6e commit 59ad411
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions tests/integration/test_credentials_load.py
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")
2 changes: 1 addition & 1 deletion utils/process_guild_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def process_guild_data(platform_document: dict) -> dict[str, str | datetime | No
"latest_heatmaps": heatmaps_date,
"latest_memberactivities": memberactivities_date,
"raw_data_count_30days": raw_data_count,
"guild_members_count": guild_members_count
"guild_members_count": guild_members_count,
}

return data

0 comments on commit 59ad411

Please sign in to comment.