Skip to content

Commit dc54e2f

Browse files
committed
add example functional test #33
1 parent f96ee73 commit dc54e2f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

requirements-test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ pytest-django
66
pytest-pythonpath
77

88
coverage
9+
django-webtest

tests/functional/conftest.py

Whitespace-only changes.

tests/functional/test_email.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.urls import reverse
2+
3+
4+
def test_signup(db, django_app):
5+
params = {"email": "[email protected]", "password": "correct battery horse staple"}
6+
django_app.post_json(reverse("auth:signup"), params=params, status=201)

0 commit comments

Comments
 (0)