Skip to content

Commit

Permalink
mongo singleton tests
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-souza committed Dec 18, 2024
1 parent 1ff89dc commit 53f01af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/misc_tests/singleton_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from flowcept.commons.daos.docdb_dao.lmdb_dao import LMDBDAO
from flowcept.commons.daos.docdb_dao.mongodb_dao import MongoDBDAO
from flowcept.commons.flowcept_logger import FlowceptLogger
from flowcept.configs import MONGO_ENABLED
from flowcept.flowcept_api.db_api import DBAPI


Expand All @@ -29,6 +30,7 @@ def test_singleton(self):
#assert Flowcept.db._dao == dao
#assert id(Flowcept.db._dao) == id(dao)

@unittest.skipIf(not MONGO_ENABLED, "MongoDB is disabled")
def test_mongo_dao_singleton(self):
doc_dao1 = MongoDBDAO()
doc_dao2 = MongoDBDAO()
Expand Down

0 comments on commit 53f01af

Please sign in to comment.