@@ -63,7 +63,8 @@ def db_session():
6363
6464@pytest .mark .asyncio
6565@patch ("feeds_operations.impl.feeds_operations_impl.trigger_dataset_download" )
66- async def test_create_gtfs_feed_success (mock_publish_messages , db_session ):
66+ @patch ("feeds_operations.impl.feeds_operations_impl.refresh_materialized_view" )
67+ async def test_create_gtfs_feed_success (_ , mock_publish_messages , db_session ):
6768 api = OperationsApiImpl ()
6869 unique_url = f"https://new-feed.example.com/{ uuid .uuid4 ()} "
6970 request = OperationCreateRequestGtfsFeed (
@@ -140,7 +141,8 @@ async def test_create_gtfs_feed_success(mock_publish_messages, db_session):
140141
141142
142143@pytest .mark .asyncio
143- async def test_create_gtfs_feed_duplicate_url_rejected ():
144+ @patch ("feeds_operations.impl.feeds_operations_impl.refresh_materialized_view" )
145+ async def test_create_gtfs_feed_duplicate_url_rejected (_ ):
144146 api = OperationsApiImpl ()
145147 # Use a URL that normalizes to the existing feed's producer_url (from feed_mdb_40)
146148 duplicate_url = " https://PRODUCER_URL/ "
@@ -174,7 +176,8 @@ async def test_create_gtfs_feed_duplicate_url_rejected():
174176
175177
176178@pytest .mark .asyncio
177- async def test_create_gtfs_rt_feed_success (db_session ):
179+ @patch ("feeds_operations.impl.feeds_operations_impl.refresh_materialized_view" )
180+ async def test_create_gtfs_rt_feed_success (_ , db_session ):
178181 api = OperationsApiImpl ()
179182 unique_url = f"https://new-feed.example.com/{ uuid .uuid4 ()} "
180183 request = OperationCreateRequestGtfsRtFeed (
@@ -235,7 +238,8 @@ async def test_create_gtfs_rt_feed_success(db_session):
235238
236239
237240@pytest .mark .asyncio
238- async def test_create_gtfs_rt_feed_duplicate_url_rejected ():
241+ @patch ("feeds_operations.impl.feeds_operations_impl.refresh_materialized_view" )
242+ async def test_create_gtfs_rt_feed_duplicate_url_rejected (_ ):
239243 api = OperationsApiImpl ()
240244 # Use a URL that normalizes to the existing feed's producer_url (from feed_mdb_40)
241245 duplicate_url = " https://PRODUCER_URL/ "
0 commit comments