diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-13 16:41:31 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-13 16:41:31 +0100 |
commit | f1bcac0499c5e6202b3ddd0661052d14b5b53f87 (patch) | |
tree | 674a0ba62d3534c6a646fbc2decd39b015035da1 /ctrack/register/tests | |
parent | aa343e46247b6a55bd0d26dad1d0b9dabaf04851 (diff) |
created a form for new Simple Event
Diffstat (limited to 'ctrack/register/tests')
-rw-r--r-- | ctrack/register/tests/test_views.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ctrack/register/tests/test_views.py b/ctrack/register/tests/test_views.py index 089cb9e..0b01047 100644 --- a/ctrack/register/tests/test_views.py +++ b/ctrack/register/tests/test_views.py @@ -1,18 +1,15 @@ import pytest -from django.test import Client from django.urls import reverse from ctrack.register.views import SingleDateTimeEventCreate -from ctrack.users.models import User pytestmark = pytest.mark.django_db class TestMeetingEventFormView: - def test_add_meeting_form(self, user): - client = Client() - client.force_login(user) - url = reverse("register:event_create_singledatetime") + + def test_add_meeting_form(self, client): + url = reverse("register:event_create_simple_event") response = client.get(url) assert response.status_code == 200 @@ -32,7 +29,7 @@ class TestMeetingEventFormView: def test_user_passed_as_kwarg(self, user, request_factory): view = SingleDateTimeEventCreate() - request = request_factory.get("/register/event/create-single-datetime/") + request = request_factory.get("/register/event/create-simple-event/") request.user = user view.request = request view.setup(request) |