nonebot / nonebug

NoneBot2 测试框架 / NoneBot2 test framework
https://nonebot.dev/docs/best-practice/testing/
MIT License
28 stars 6 forks source link

Feature: add kwargs for create_bot #4

Closed MeetWq closed 1 year ago

MeetWq commented 1 year ago

由于 Onebot V12 的 Bot 初始化需要 platform 属性,在使用 create_bot(base=V12Bot) 的时候无法传入该属性

Snipaste_2023-01-17_20-16-30

codecov[bot] commented 1 year ago

Codecov Report

Merging #4 (2244338) into master (8f54e5d) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          13       13           
  Lines         440      440           
=======================================
  Hits          439      439           
  Misses          1        1           
Flag Coverage Δ
unittests 99.77% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nonebug/mixin/call_api/__init__.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.