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

rafalp / Misago / 17496798327

05 Sep 2025 02:59PM UTC coverage: 96.509% (-0.3%) from 96.769%
17496798327

Pull #1995

github

web-flow
Merge 17284d7d7 into 6bb938c90
Pull Request #1995: Move `Post` model from `misago.threads` to `misago.posts`

1884 of 1974 new or added lines in 149 files covered. (95.44%)

305 existing lines in 16 files now uncovered.

66716 of 69129 relevant lines covered (96.51%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/misago/threads/checksums.py
1
from ..markup import checksums
1✔
2

3

4
def is_post_valid(post):
1✔
UNCOV
5
    valid_checksum = make_post_checksum(post)
×
UNCOV
6
    return post.checksum == valid_checksum
×
7

8

9
def make_post_checksum(post):
1✔
10
    post_seeds = [str(v) for v in (post.id, str(post.posted_at.date()))]
1✔
11
    return checksums.make_checksum(post.parsed, post_seeds)
1✔
12

13

14
def update_post_checksum(post):
1✔
15
    post.checksum = make_post_checksum(post)
1✔
16
    return post.checksum
1✔
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