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

Geoffery10 / Discord-Role-Manager / 27889600890
90%

Build:
DEFAULT BRANCH: main
Ran 21 Jun 2026 01:25AM UTC
Jobs 1
Files 20
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

21 Jun 2026 01:23AM UTC coverage: 48.192% (+22.6%) from 25.585%
27889600890

push

github

Geoffery10
Add conftest and test_idiscord.py — 31 tests for the DB layer

iDiscord.py went from 26% to 99% covered. Total project coverage
climbed from 26% to 48% (53 tests passing, up from 22).

conftest.py
  - isolated_cwd session fixture: chdir into a tmp dir for the whole
    test session and pre-create the discord.db schema so importing
    iDiscord is a no-op against the schema migration.
  - fresh_db function fixture: wipe rows between tests.
  - reload_idiscord_in context-manager fixture: chdir + importlib.reload
    so _ensure_schema() can be re-exercised against legacy / fresh /
    current schemas for migration-branch coverage.
  - birthday_json / last_update_json: pre-stage the JSON files birthday.py
    and update.py open() relative to cwd.

test_idiscord.py
  - Schema migration: 5 tests for the legacy/current/fresh branches of
    _ensure_schema including the guilds PK rebuild with MIN(name) dedupe.
  - connect(): PRAGMA busy_timeout verification.
  - CRUD: add/get/get_users/update/delete for the users table, both
    signatures of update_user.
  - Granular update_user_*/tag/username/birthday/avatar writers.
  - Guild membership: add_user_to_guild idempotency, remove_user_from_guild,
    is_user_in_guild, get_guild_users scoping.
  - Guilds table: add_guild_to_table (INSERT OR REPLACE), remove,
    sync_guilds_table iterating client.guilds.

394 of 402 new or added lines in 2 files covered. (98.01%)

853 of 1770 relevant lines covered (48.19%)

0.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
90.0
tests/conftest.py
Jobs
ID Job ID Ran Files Coverage
1 27889600890.1 21 Jun 2026 01:25AM UTC 20
48.19
GitHub Action Run
Source Files on build 27889600890
  • Tree
  • List 20
  • Changed 3
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27889600890
  • 96311050 on github
  • Prev Build on main (#26908890882)
  • Next Build on main (#27889910644)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc