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

iplweb / bpp / 18634744198

19 Oct 2025 07:00PM UTC coverage: 31.618% (-29.9%) from 61.514%
18634744198

push

github

mpasternak
Merge branch 'release/v202510.1270'

657 of 9430 branches covered (6.97%)

Branch coverage included in aggregate %.

229 of 523 new or added lines in 42 files covered. (43.79%)

11303 existing lines in 316 files now uncovered.

14765 of 39346 relevant lines covered (37.53%)

0.38 hits per line

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

87.1
src/bpp/models/cache/views.py
1
from django.contrib.postgres.fields.array import ArrayField
1✔
2
from django.db import models
1✔
3
from django.db.models.deletion import DO_NOTHING
1✔
4
from taggit.models import Tag
1✔
5

6

7
class SlowaKluczoweView(models.Model):
1✔
8
    id = ArrayField(base_field=models.IntegerField(), size=3, primary_key=True)
1✔
9

10
    rekord = models.ForeignKey(
1✔
11
        "bpp.Rekord", related_name="slowa_kluczowe_set", on_delete=DO_NOTHING
12
    )
13
    tag = models.ForeignKey(Tag, on_delete=DO_NOTHING)
1✔
14

15
    @classmethod
1✔
16
    def tag_relname(cls):
1✔
UNCOV
17
        field = cls._meta.get_field("tag")
×
UNCOV
18
        return field.remote_field.related_name
×
19

20
    @classmethod
1✔
21
    def tags_for(cls, model, instance=None, **kwargs):
1✔
22
        from .rekord import Rekord
1✔
23

24
        if model != Rekord:
1✔
25
            raise NotImplementedError
26
        if instance is not None:
1!
27
            return cls.objects.filter(rekord_id=(instance.pk,))
1✔
UNCOV
28
        return cls.objects.all()
×
29

30
    class Meta:
1✔
31
        managed = False
1✔
32
        db_table = "bpp_slowa_kluczowe_view"
1✔
33

34

35
class ZewnetrzneBazyDanychView(models.Model):
1✔
36
    rekord = models.ForeignKey(
1✔
37
        "bpp.Rekord", related_name="zewnetrzne_bazy", on_delete=DO_NOTHING
38
    )
39

40
    baza = models.ForeignKey("bpp.Zewnetrzna_Baza_Danych", on_delete=DO_NOTHING)
1✔
41

42
    info = models.TextField()
1✔
43

44
    class Meta:
1✔
45
        managed = False
1✔
46
        db_table = "bpp_zewnetrzne_bazy_view"
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