MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_configuration_conflict

Function test_configuration_conflict

tests/unit/test_service_locator.py:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_configuration_conflict() -> None:
35 service_locator.get_configuration()
36 custom_config = Configuration(default_browser_path='custom_path')
37
38 with pytest.raises(ServiceConflictError, match=r'Configuration is already in use.'):
39 service_locator.set_configuration(custom_config)
40
41
42def test_default_event_manager() -> None:

Callers

nothing calls this directly

Calls 3

ConfigurationClass · 0.90
get_configurationMethod · 0.80
set_configurationMethod · 0.80

Tested by

no test coverage detected