mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-04 23:02:09 +00:00
13 lines
393 B
Python
13 lines
393 B
Python
![]() |
import pytest
|
||
|
from autogen.coding.factory import CodeExecutorFactory
|
||
|
|
||
|
|
||
|
def test_create_unknown() -> None:
|
||
|
config = {"executor": "unknown"}
|
||
|
with pytest.raises(ValueError, match="Unknown code executor unknown"):
|
||
|
CodeExecutorFactory.create(config)
|
||
|
|
||
|
config = {}
|
||
|
with pytest.raises(ValueError, match="Unknown code executor None"):
|
||
|
CodeExecutorFactory.create(config)
|