aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/conftest.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-13 16:41:31 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-13 16:41:31 +0100
commitf1bcac0499c5e6202b3ddd0661052d14b5b53f87 (patch)
tree674a0ba62d3534c6a646fbc2decd39b015035da1 /ctrack/conftest.py
parentaa343e46247b6a55bd0d26dad1d0b9dabaf04851 (diff)
created a form for new Simple Event
Diffstat (limited to '')
-rw-r--r--ctrack/conftest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ctrack/conftest.py b/ctrack/conftest.py
index 2296070..a3c6f58 100644
--- a/ctrack/conftest.py
+++ b/ctrack/conftest.py
@@ -3,7 +3,7 @@ import os
import pytest
from django.contrib.auth.models import Group, Permission
from django.db.models import Q
-from django.test import RequestFactory
+from django.test import RequestFactory, Client
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
@@ -173,3 +173,10 @@ def browser(request):
browser_ = webdriver.Firefox(firefox_options=options)
yield browser_
browser_.quit()
+
+
+@pytest.fixture
+def client(user):
+ client = Client()
+ client.force_login(user)
+ return client