haystack-core-integrations icon indicating copy to clipboard operation
haystack-core-integrations copied to clipboard

tests requiring additional setup

Open MetroCat69 opened this issue 7 months ago • 0 comments

Describe the bug Mongodb Atlas tests assume specific documents, collections and databases exists

so tests in test_embedding_retrieval automaticly fail

additionally test_embedding_retrieval and test_embedding_retrieval_async are searching for MONGO_CONNECTION_STRING_2 and till be skipped. I think this is a bug and we need to to replace MONGO_CONNECTION_STRING_2 with MONGO_CONNECTION_STRING

good news I am hard at working at a pr that will ensure this database, collection, documents will be created in an idempotent manner

To Reproduce cd git clone https://github.com/deepset-ai/haystack-core-integrations.git cd haystack-core-integrations/integrations/mongodb_atlas pip install hatch export MONGO_CONNECTION_STRING = "" hatch run test

MetroCat69 avatar Apr 19 '25 12:04 MetroCat69