Skip to content

Commit

Permalink
update: removed the not required tests!
Browse files Browse the repository at this point in the history
the removed test cases were related to the shared library which we removed the shared library codes from the scripts in this repo.
  • Loading branch information
amindadgar committed Dec 28, 2023
1 parent 02fb724 commit 427c9a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
21 changes: 0 additions & 21 deletions dags/hivemind_etl_helpers/tests/integration/test_load_envs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import unittest

from hivemind_etl_helpers.src.utils.credentials import load_mongo_credentials
from tc_hivemind_backend.db.credentials import load_postgres_credentials


class TestCredentialLoadings(unittest.TestCase):
Expand All @@ -22,23 +21,3 @@ def test_mongo_envs_values(self):
self.assertIsInstance(mongo_creds["password"], str)
self.assertIsInstance(mongo_creds["host"], str)
self.assertIsInstance(mongo_creds["port"], str)

def test_postgres_envs_type(self):
postgres_creds = load_postgres_credentials()

self.assertIsInstance(postgres_creds, dict)

def test_postgres_envs_values(self):
postgres_creds = load_postgres_credentials()

self.assertNotEqual(postgres_creds["host"], None)
self.assertNotEqual(postgres_creds["password"], None)
self.assertNotEqual(postgres_creds["user"], None)
self.assertNotEqual(postgres_creds["port"], None)
self.assertNotEqual(postgres_creds["db_name"], None)

self.assertIsInstance(postgres_creds["host"], str)
self.assertIsInstance(postgres_creds["password"], str)
self.assertIsInstance(postgres_creds["user"], str)
self.assertIsInstance(postgres_creds["port"], str)
self.assertIsInstance(postgres_creds["db_name"], str)
40 changes: 0 additions & 40 deletions dags/hivemind_etl_helpers/tests/unit/test_load_model_params.py

This file was deleted.

0 comments on commit 427c9a7

Please sign in to comment.