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

liqd / adhocracy-plus / 18908688697

29 Oct 2025 12:59PM UTC coverage: 44.622% (-44.5%) from 89.135%
18908688697

Pull #2986

github

web-flow
Merge 1dfde8ee7 into 445e1d498
Pull Request #2986: Draft: Speed up Github Ci Tests

3012 of 6750 relevant lines covered (44.62%)

0.45 hits per line

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

57.14
/apps/interactiveevents/predicates.py
1
import rules
1✔
2

3
from adhocracy4.phases.predicates import has_feature_active
1✔
4

5

6
@rules.predicate
1✔
7
def phase_allows_like(user, item):
1✔
8
    if item:
×
9
        return has_feature_active(item.module, item.__class__, "like")
×
10
    return False
×
11

12

13
def phase_allows_like_model(item_class):
1✔
14
    @rules.predicate
1✔
15
    def _add_predicate(user, module):
1✔
16
        if module:
×
17
            return has_feature_active(module, item_class, "like")
×
18
        return False
×
19

20
    return _add_predicate
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

© 2025 Coveralls, Inc