mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
⬆️ 升级至 NoneBug 0.3
* 🚧 第一次尝试 50/82 * 62/82 调整了清除数据库的位置 * 🚧 pytest-mock * 🚧 fix test_send * 🚧 intruduce app request * 🚧 close and remove tinydb after each test * 🚧 clean ScheduleTimeWeight table * 🚧 reload http module to test proxy * ✅ 合并 main 的代码 * 🚧 在每次测试结束后关闭browser * 🧑💻 在mcbbsnews渲染异常时添加logger --------- Co-authored-by: hemengyang <hmy0119@gmail.com> Co-authored-by: Azide <rukuy@qq.com>
This commit is contained in:
@@ -65,7 +65,6 @@ async def test_fetch_new(weibo, dummy_user_subinfo):
|
||||
assert not detail_router.called
|
||||
mock_data = get_json("weibo_ak_list_1.json")
|
||||
ak_list_router.mock(return_value=Response(200, json=mock_data))
|
||||
# import ipdb; ipdb.set_trace()
|
||||
res2 = await weibo.fetch_new_post(target, [dummy_user_subinfo])
|
||||
assert len(res2) == 0
|
||||
mock_data["data"]["cards"][1]["mblog"]["created_at"] = datetime.now(
|
||||
|
||||
Reference in New Issue
Block a user