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

iplweb / bpp / 636de4db-e13f-4d60-aba3-a6b23c042552

04 Jun 2025 07:28AM UTC coverage: 36.244% (-10.6%) from 46.882%
636de4db-e13f-4d60-aba3-a6b23c042552

push

circleci

mpasternak
Merge branch 'release/v202506.1180'

13 of 40 new or added lines in 9 files covered. (32.5%)

1618 existing lines in 115 files now uncovered.

13427 of 37046 relevant lines covered (36.24%)

0.36 hits per line

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

47.06
src/tee/admin.py
1
from tee.models import Log
1✔
2
from tee.utils import last_n_lines
1✔
3

4
from django.contrib import admin
1✔
5

6
from django.utils.safestring import mark_safe
1✔
7

8

9
@admin.register(Log)
1✔
10
class LogAdmin(admin.ModelAdmin):
1✔
11
    list_display = [
1✔
12
        "cmd_name",
13
        "started_on",
14
        "finished_on",
15
        "finished_successfully",
16
        "last_5_lines",
17
    ]
18

19
    list_per_page = 10
1✔
20

21
    readonly_fields = [
1✔
22
        "started_on",
23
        "finished_on",
24
        "finished_successfully",
25
        "command_name",
26
        "args",
27
        "stdout",
28
        "stderr",
29
        "traceback",
30
    ]
31

32
    date_hierarchy = "started_on"
1✔
33

34
    def has_add_permission(self, request):
1✔
UNCOV
35
        return False
×
36

37
    def has_change_permission(self, request, obj=None):
1✔
UNCOV
38
        return False
×
39

40
    def cmd_name(self, obj):
1✔
41
        args = ""
×
42
        if obj.args:
×
43
            args = f" {' '.join(obj.args)}"
×
44
        return f"{obj.command_name}" + args
×
45

46
    def finished_successfully(self, obj: Log):
1✔
47
        if obj.exit_code == 0:
×
48
            return True
×
49
        return False
×
50

51
    def last_5_lines(self, obj):
1✔
52
        s = obj.stderr
×
53

54
        if obj.traceback:
×
55
            s = obj.traceback
×
56

57
        if not s:
×
58
            s = obj.stdout
×
59

60
        r = last_n_lines(s, nlines=5)
×
61
        if r is None:
×
62
            return
×
63
        return mark_safe(f"<pre>{r}</pre>")
×
64

65
    last_5_lines.short_description = "Results"
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