SIENTIAPDE-1974 Fix Sonar issues: reduce gather_read_tags complexity, import pytest as module
Move the per-pipeline read tag loop of gather_read_tags into
_add_pipeline_read_tags (cognitive complexity 16 -> ~6) and import pytest
as a module in test_mongo_db.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>