mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-31 21:02:33 +00:00

* Add isort * Apply isort on py files * Fix circular import * Fix format for notebooks * Fix format --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
14 lines
394 B
Python
14 lines
394 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)
|