MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_init_dynamic_import_called

Function test_init_dynamic_import_called

tests/test_chromium.py:1204–1208  ·  view source on GitHub ↗

Test that dynamic_import is called during initialization.

(mock_dynamic_import)

Source from the content-addressed store, hash-verified

1202
1203@patch("scrapegraphai.docloaders.chromium.dynamic_import")
1204def test_init_dynamic_import_called(mock_dynamic_import):
1205 """Test that dynamic_import is called during initialization."""
1206 urls = ["http://example.com"]
1207 _ = ChromiumLoader(urls, backend="playwright")
1208 mock_dynamic_import.assert_called_with("playwright", ANY)
1209
1210
1211@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

ChromiumLoaderClass · 0.90

Tested by

no test coverage detected