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

iplweb / bpp / b4db3711-76b8-4b6d-afc4-b476b98143d5

01 Apr 2025 03:15PM UTC coverage: 42.319% (-0.8%) from 43.072%
b4db3711-76b8-4b6d-afc4-b476b98143d5

push

circleci

mpasternak
Try to fix tests on GA

15524 of 36683 relevant lines covered (42.32%)

1.18 hits per line

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

46.3
src/integration_tests/test_conftest.py
1
import pytest
1✔
2
from django.db import connection
1✔
3

4
from bpp.models.cache import Autorzy, Rekord
1✔
5
from bpp.models.wydawnictwo_ciagle import Wydawnictwo_Ciagle_Autor
1✔
6

7

8
def test_uczelnia(uczelnia):
1✔
9
    assert uczelnia is not None
×
10

11

12
def test_wydzial(wydzial):
1✔
13
    assert wydzial is not None
×
14

15

16
@pytest.mark.django_db
1✔
17
def test_wydawnictwo_ciagle(wydawnictwo_ciagle):
1✔
18
    assert wydawnictwo_ciagle is not None
×
19

20

21
def test_autorzy(autor_jan_nowak, autor_jan_kowalski):
1✔
22
    assert autor_jan_kowalski is not None
×
23
    assert autor_jan_nowak is not None
×
24

25

26
def test_jednostka(jednostka):
1✔
27
    assert jednostka is not None
×
28

29

30
def test_zrodlo(zrodlo):
1✔
31
    assert zrodlo is not None
×
32

33

34
@pytest.mark.django_db
1✔
35
def test_wydawnictwo_zwarte(wydawnictwo_zwarte):
1✔
36
    assert wydawnictwo_zwarte is not None
×
37

38

39
def test_doktorat(doktorat):
1✔
40
    assert doktorat is not None
×
41

42

43
def test_habilitacja(habilitacja):
1✔
44
    assert habilitacja is not None
×
45

46

47
def test_patent(patent):
1✔
48
    assert patent is not None
×
49

50

51
@pytest.mark.uruchom_tylko_bez_microsoft_auth
1✔
52
def test_preauth_webtest_app(app):
1✔
53
    assert app is not None
×
54
    res = app.get("/admin/").follow()
×
55
    assert "Zaloguj się" in res.text
×
56

57

58
def test_admin_app(admin_app):
1✔
59
    assert admin_app is not None
×
60
    res = admin_app.get("/admin/")
×
61
    assert "Redagowanie" in res.text
×
62

63

64
def test_praca_doktorska_view(doktorat):
1✔
65
    # Jeżeli nie ma charatkeruy formalnego 'D', to sie to nie pokaze
66
    cur = connection.cursor()
×
67
    cur.execute("SELECT * FROM bpp_praca_doktorska_view")
×
68
    assert len(cur.fetchall()) == 1
×
69

70

71
def test_praca_habilitacyjna_view(habilitacja):
1✔
72
    # Jeżeli nie ma charatkeruy formalnego 'H', to sie to nie pokaze
73
    cur = connection.cursor()
×
74
    cur.execute("SELECT * FROM bpp_praca_habilitacyjna_view")
×
75
    assert len(cur.fetchall()) == 1
×
76

77

78
@pytest.mark.django_db
1✔
79
def test_patent_view(patent):
1✔
80
    # Jeżeli nie ma charatkeruy formalnego 'PAT' oraz typu KBN PO oraz jezyka 'pol.', to sie to nie pokaze
81
    cur = connection.cursor()
×
82
    cur.execute("SELECT * FROM bpp_patent_view")
×
83
    assert len(cur.fetchall()) == 1
×
84

85

86
@pytest.mark.django_db
1✔
87
def test_wydawnictwo_ciagle_z_dwoma_autorami(wydawnictwo_ciagle_z_dwoma_autorami):
1✔
88
    assert Rekord.objects.all().count() == 1
×
89
    assert Wydawnictwo_Ciagle_Autor.objects.all().count() == 2
×
90
    assert Autorzy.objects.count() == 2
×
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