fix: 移除周报 type 属性
This commit is contained in:
@ -207,7 +207,6 @@ def generate_weekly(
|
|||||||
properties = {
|
properties = {
|
||||||
"version": get_version(),
|
"version": get_version(),
|
||||||
"model": model.rsplit("/", 1)[-1],
|
"model": model.rsplit("/", 1)[-1],
|
||||||
"type": "weekly",
|
|
||||||
"is_read": False,
|
"is_read": False,
|
||||||
}
|
}
|
||||||
if previous_weekly is None:
|
if previous_weekly is None:
|
||||||
|
|||||||
@ -80,7 +80,7 @@ def test_generate_weekly_reads_previous_week_and_sanitizes_links(
|
|||||||
|
|
||||||
text = output.read_text(encoding="utf-8")
|
text = output.read_text(encoding="utf-8")
|
||||||
assert "[[审核群|指数内容部落]]" in text
|
assert "[[审核群|指数内容部落]]" in text
|
||||||
assert "type: weekly" in text
|
assert "type: weekly" not in text
|
||||||
assert "date:" not in text
|
assert "date:" not in text
|
||||||
assert "上周合成周记" in clients[0].prompts[-1]
|
assert "上周合成周记" in clients[0].prompts[-1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user