Skip to content

Commit

Permalink
Adjust mock patch module path for scraping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Feb 27, 2024
1 parent dbd0d53 commit c9da574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scraping/test_scraping_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_queue_closed_if_pipeline_raises_an_exception(mocker):
)

spy_on_queue_close = mocker.spy(sources.scraping.queue.ScrapingQueue, "close")
with mocker.patch("dlt.pipeline.pipeline.Pipeline.run", side_effect=OSError("bla")):
with mocker.patch("dlt.pipeline.Pipeline.run", side_effect=OSError("bla")):
run_pipeline(pipeline, MySpider, dataset_name="quotes")
spy_on_queue_close.assert_called()

Expand Down

0 comments on commit c9da574

Please sign in to comment.