Test that dynamic_import is called during initialization.
(mock_dynamic_import)
| 1202 | |
| 1203 | @patch("scrapegraphai.docloaders.chromium.dynamic_import") |
| 1204 | def 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 |
nothing calls this directly
no test coverage detected