added markers; edited README.md

This commit is contained in:
Oussama Jarrousse
2023-12-27 11:36:25 +01:00
parent c53b4d1e1a
commit 54f5eb212a
3 changed files with 47 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
import pytest
from django.urls import reverse
@pytest.mark.VIEWS
@pytest.mark.DJANGO
@pytest.mark.ANNONYMOUS_USER
@pytest.mark.django_db
def test_index_unauthenticated(client):
url = reverse("mfa_home")
@@ -9,7 +12,8 @@ def test_index_unauthenticated(client):
assert response.status_code == 302
assert response.url=="/accounts/login/?next=/"
@pytest.mark.VIEWS
@pytest.mark.AUTHENTICATED_USER
@pytest.mark.django_db
def test_index_authenticated(client, authenticated_user):
url = reverse("mfa_home")