mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
test: remove duplicate code executor integration coverage (#38947)
This commit is contained in:
parent
0f0fb1ca3d
commit
bf2654eff6
@ -1,11 +0,0 @@
|
|||||||
import pytest
|
|
||||||
|
|
||||||
from core.helper.code_executor.code_executor import CodeExecutionError, CodeExecutor
|
|
||||||
|
|
||||||
CODE_LANGUAGE = "unsupported_language"
|
|
||||||
|
|
||||||
|
|
||||||
def test_unsupported_with_code_template():
|
|
||||||
with pytest.raises(CodeExecutionError) as e:
|
|
||||||
CodeExecutor.execute_workflow_code_template(language=CODE_LANGUAGE, code="", inputs={})
|
|
||||||
assert str(e.value) == f"Unsupported language {CODE_LANGUAGE}"
|
|
||||||
Loading…
Reference in New Issue
Block a user