chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
from pydantic import ValidationError
|
||||
from pytest import raises
|
||||
|
||||
from semantic_kernel.template_engine.blocks.block import Block
|
||||
|
||||
|
||||
def test_init():
|
||||
block = Block(content="test content")
|
||||
assert block.content == "test content"
|
||||
|
||||
|
||||
def test_content_strip():
|
||||
block = Block(content=" test content ")
|
||||
assert block.content == "test content"
|
||||
|
||||
|
||||
def test_no_content():
|
||||
with raises(ValidationError):
|
||||
Block()
|
||||
Reference in New Issue
Block a user