From f1bcac0499c5e6202b3ddd0661052d14b5b53f87 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 13 Oct 2020 16:41:31 +0100 Subject: created a form for new Simple Event --- ctrack/register/tests/test_views.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'ctrack/register/tests') 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) -- cgit v1.2.3