push
circleci
3 of 9 new or added lines in 2 files covered. (33.33%)
9722 existing lines in 336 files now uncovered.18270 of 33981 relevant lines covered (53.77%)
2.4 hits per line
1 |
# -*- encoding: utf-8 -*-
|
|
2 |
|
|
3 |
import pytest |
1✔ |
4 |
|
|
5 |
|
|
6 |
def test_handler403_permission_denied(client): |
1✔ |
UNCOV
7
|
try:
|
× |
UNCOV
8
|
client.get("/admin/bpp/")
|
× |
9 |
except TypeError: |
× |
10 |
assert False |
× |
11 |
|
|
12 |
|
|
13 |
@pytest.mark.django_db
|
1✔ |
14 |
@pytest.mark.urls("bpp.tests.test_views.urls_test_handlers") |
1✔ |
15 |
def test_handler500(client): |
1✔ |
UNCOV
16
|
with pytest.raises(ZeroDivisionError): |
× |
UNCOV
17
|
try:
|
× |
UNCOV
18
|
client.get("/test_500")
|
× |
UNCOV
19
|
except TypeError as e: |
× |
20 |
assert False |
× |
21 |
|
|
22 |
|
|
23 |
@pytest.mark.django_db
|
1✔ |
24 |
def test_handler404_not_found(client): |
1✔ |
UNCOV
25
|
try:
|
× |
UNCOV
26
|
client.get("/bpp/this_page_does_not_exist_for_sure")
|
× |
27 |
except TypeError: |
× |
28 |
assert False |
× |