From 50d3a5294c501956282be5e7bac777219e27a5b5 Mon Sep 17 00:00:00 2001 From: Rwolfe-Nava Date: Tue, 13 Aug 2024 12:28:44 -0400 Subject: [PATCH] add opportunities that should not get fetched --- .../task/opportunities/test_export_opportunity_data_task.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/tests/src/task/opportunities/test_export_opportunity_data_task.py b/api/tests/src/task/opportunities/test_export_opportunity_data_task.py index 2b4fb444d..d462dbc6c 100644 --- a/api/tests/src/task/opportunities/test_export_opportunity_data_task.py +++ b/api/tests/src/task/opportunities/test_export_opportunity_data_task.py @@ -38,6 +38,10 @@ def test_export_opportunity_data_task( OpportunityFactory.create_batch(size=6, is_archived_forecast_summary=True) ) + # Create some opportunities that won't get fetched / loaded into search + OpportunityFactory.create_batch(size=3, is_draft=True) + OpportunityFactory.create_batch(size=4, no_current_summary=True) + export_opportunity_data_task.run() # Verify some metrics first