mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-04 08:28:36 +00:00
fix(feishu): move post extract test import to module top
This commit is contained in:
parent
fb88154377
commit
a7cac65c76
@ -1,6 +1,9 @@
|
||||
import json
|
||||
|
||||
from nanobot.channels.feishu.runtime import _extract_share_card_content
|
||||
from nanobot.channels.feishu.runtime import (
|
||||
_extract_post_content,
|
||||
_extract_share_card_content,
|
||||
)
|
||||
|
||||
|
||||
def test_extract_interactive_card_reads_user_dsl_body_elements() -> None:
|
||||
@ -39,9 +42,6 @@ def test_extract_interactive_card_reads_table_rows() -> None:
|
||||
assert _extract_share_card_content(content, "interactive") == "Name | Score\nAlice | 98"
|
||||
|
||||
|
||||
from nanobot.channels.feishu.runtime import _extract_post_content
|
||||
|
||||
|
||||
def test_extract_post_content_tolerates_null_text_fields() -> None:
|
||||
text, images = _extract_post_content(
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user