push
circleci
1 of 1 new or added line in 1 file covered. (100.0%)
1645 existing lines in 89 files now uncovered.17056 of 34087 relevant lines covered (50.04%)
1.26 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 |
× |