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

thomwiggers / onebot / 24400498282
67%

Build:
DEFAULT BRANCH: develop
Ran 14 Apr 2026 01:04PM 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% (-0.09%) from 67.468%
24400498282

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%)

1 existing line in 1 file 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
1
29.23
0.0% onebot/plugins/trakt.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.14 - 24400498282.1 14 Apr 2026 01:04PM UTC 16
67.31
GitHub Action Run
2 run-3.11 - 24400498282.2 14 Apr 2026 01:04PM UTC 16
67.38
GitHub Action Run
3 run-3.13 - 24400498282.3 14 Apr 2026 01:04PM UTC 16
67.38
GitHub Action Run
4 run-3.12 - 24400498282.4 14 Apr 2026 01:04PM UTC 16
67.38
GitHub Action Run
5 run-3.x - 24400498282.5 14 Apr 2026 01:04PM UTC 16
67.31
GitHub Action Run
Source Files on build 24400498282
  • Tree
  • List 16
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24400498282
  • ab807f90 on github
  • Prev Build on develop (#24400219107)
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