• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattbox / onebot / 25257975199
67%

Build:
DEFAULT BRANCH: develop
Ran 02 May 2026 05:46PM UTC
Jobs 5
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Apr 2026 01:03PM UTC coverage: 67.376% (-4.9%) from 72.283%
25257975199

push

github

web-flow
fix: convert user settings to async and centralize serialization (#241)

* fix: convert user settings to async and centralize serialization

Convert User.set_setting and User.set_settings to async methods to prevent
race conditions and allow proper error handling. Centralize JSON
serialization in the User class and remove redundant dumps in ACLPlugin.
Remove redundant (object) inheritance for Python 3 modernization.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(tests): correct regression tests for async set_setting

- test_remove_acl: expect JSON string '[]' since set_setting serializes
  to JSON for Redis compatibility
- test_setuser: use AsyncMock for set_setting, dispatch inside wrap()
  with one_moment() (freeze_time tick=True) so the async command handler
  actually runs before asserting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ruff format

* fix(acl): restore json.dumps for --by-id db.set path

The --by-id path bypasses user.set_setting and writes directly to
bot.db. Must serialize to JSON for Redis compatibility, same as the
user.set_setting path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: remove unused asyncio import

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

21 of 24 new or added lines in 6 files covered. (87.5%)

48 existing lines in 3 files now uncovered.

950 of 1410 relevant lines covered (67.38%)

3.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
37.17
0.56% onebot/plugins/spotify.py
1
29.23
0.0% onebot/plugins/trakt.py

Coverage Regressions

Lines Coverage ∆ File
36
30.77
-69.23% onebot/plugins/stonks.py
11
56.12
0.1% onebot/plugins/urlinfo.py
1
29.23
0.0% onebot/plugins/trakt.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12 - 25257975199.1 02 May 2026 05:46PM UTC 16
67.38
GitHub Action Run
2 run-3.13 - 25257975199.2 02 May 2026 05:46PM UTC 16
67.38
GitHub Action Run
3 run-3.14 - 25257975199.3 02 May 2026 05:46PM UTC 16
67.31
GitHub Action Run
4 run-3.11 - 25257975199.4 02 May 2026 05:46PM UTC 16
67.38
GitHub Action Run
5 run-3.x - 25257975199.5 02 May 2026 05:46PM UTC 16
67.31
GitHub Action Run
Source Files on build 25257975199
  • Tree
  • List 16
  • Changed 8
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25257975199
  • ab807f90 on github
  • Prev Build on develop (#22497861631)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc