33 Commits

Author SHA1 Message Date
c5dea7e252
♻️ 初步移除CookieSite 2024-10-29 21:12:50 +08:00
b6ba904a68
🐛 又忘记改单测了( 2024-10-13 21:30:08 +08:00
Azide
32e3bcc022
🐛 修正项目的代码警告 (#614)
* 🐛 调整ruff的pytest警告

* 🐛 调整导入关系警告

* 🐛 删除奇怪无用的赋值和取值逻辑

*  不同测试部分所用变量应加以区分

* 🐛 subs_io model添加默认值

* 🐛 修完所有的 ruff PT001 警告

* 🔧 按ruff建议修改ruff配置

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-17 18:24:20 +08:00
felinae98
5bd8b21f19 ♻️ rename scheduler_config -> site 2024-06-03 18:36:07 +08:00
felinae98
2fc11a9653 ♻️ refactor client of scheduler_config 2024-06-03 18:36:07 +08:00
Cinte
3683d3ef28
更详细的微博 (#504)
*  微博优化

* 🔧 将转发内容放入repost

* 💄 auto fix by pre-commit hooks

* 🔧 补充获取转发微博的单元测试

* 🔧 微博增加视频封面的获取

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-25 19:06:35 +08:00
Azide
f202071e9f 添加 Theme 功能 2024-02-16 09:46:13 +08:00
felinae98
e7dcfdee50
提供批量 api 接口 (#290)
* 🚧 add batch api

* 🚧 support batch in scheduler

*  use batch api in bilibili-live

 patch platform_manager directly

 use batch api in bilibili-live

 patch platform_manager directly

* ♻️ refactor var name

* 🐛 fix test

* 🐛 fix scheduler

* 🐛 fix test
2023-08-29 21:12:42 +08:00
Azide
bf788ff72a 🚨 移除noqa: E501
💄 auto fix by pre-commit hooks
2023-07-18 21:43:25 +08:00
Azide
7d4eb7785c 🎨 按ruff调整测试代码 2023-07-18 21:43:25 +08:00
felinae98
0201d5b316
⬆️ 升级至 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>
2023-03-03 15:12:25 +08:00
felinae98
bd679914eb add context to log http error 2022-11-24 14:12:11 +08:00
felinae98
e249a8d685 🐛 download weibo pics in parse 2022-11-22 22:11:30 +08:00
felinae98
74b5074f04
inject http client to scheduler 2022-10-16 20:48:14 +08:00
felinae98
d04b082e06
Merge branch 'main' into feat/parse-target 2022-05-22 23:32:52 +08:00
felinae98
12136023cb
add respx for weibo target 2022-05-20 13:08:51 +08:00
felinae98
831b2f2ca1
update ncm_artist ncm_radio 2022-03-21 15:46:48 +08:00
felinae98
5a492aceb3
format code 2022-02-12 11:22:39 +08:00
felinae98
79799e6d44
Merge branch 'main' into nonebot-b1 2022-02-12 11:21:20 +08:00
felinae98
7dbbaea6c8
update config 2022-02-12 10:40:27 +08:00
felinae98
709a3e214b
format code 2022-02-12 10:20:02 +08:00
felinae98
8d40ba504c
update all test 2022-02-12 00:48:25 +08:00
hemengyang
547be7608f add pre-commit and format files 2022-02-09 21:05:14 +08:00
felinae98
ebfe0d7fa3
rename html 2022-01-05 14:12:44 +08:00
felinae98
4aae3a8c6f
update test 2021-11-17 22:07:11 +08:00
felinae98
6b81e2e7c1
add weibo text category, support super topic 2021-07-06 13:30:27 +08:00
felinae98
d0b29abed7
add compare marker 2021-06-29 11:14:46 +08:00
felinae98
7e883f4d2c
reconstruct 2021-06-29 10:33:08 +08:00
felinae98
a8110675f4
add cross validate 2021-06-22 10:35:44 +08:00
felinae98
c62a8d2f5e
use coverage 2021-06-18 10:24:24 +08:00
felinae98
d6192153da
add weibo tag 2021-06-18 09:53:09 +08:00
felinae98
819c126722
add weibo test 2021-06-17 20:22:30 +08:00
felinae98
b3e305cbbb
add weibo test 2021-06-17 13:02:28 +08:00