push
circleci
29 of 45 new or added lines in 16 files covered. (64.44%)
9915 existing lines in 334 files now uncovered.17961 of 33954 relevant lines covered (52.9%)
2.39 hits per line
1 |
import pytest |
|
NEW
|
from django.apps import apps |
× |
UNCOV
3
|
from django.core import mail |
× |
UNCOV
4
|
from django.urls import reverse |
× |
5 |
|
|
6 |
|
|
UNCOV
7
|
@pytest.mark.django_db
|
× |
NEW
|
@pytest.mark.skipif(
|
× |
9 |
apps.is_installed("microsoft_auth"), reason="działa bez django_microsoft_auth" |
|
10 |
) |
|
UNCOV
11
|
def test_password_reset(webtest_app, normal_django_user): |
× |
UNCOV
12
|
EMAIL = "foo@bar.pl"
|
× |
UNCOV
13
|
normal_django_user.email = EMAIL |
× |
UNCOV
14
|
normal_django_user.save() |
× |
15 |
|
|
UNCOV
16
|
url = reverse("password_reset")
|
× |
UNCOV
17
|
page = webtest_app.get(url) # noqa
|
× |
UNCOV
18
|
page.forms[0]["email"] = EMAIL |
× |
UNCOV
19
|
page = page.forms[0].submit().maybe_follow()
|
× |
20 |
|
|
UNCOV
21
|
assert page.status_code == 200 |
× |
UNCOV
22
|
assert len(mail.outbox) == 1 |
× |