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