Files
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

22 lines
470 B
Python

# 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()