test suite with users logins

This commit is contained in:
Philip Sargent
2021-04-17 20:45:38 +01:00
parent f8b613e0aa
commit 25b8fc2e1d
11 changed files with 1800 additions and 4 deletions

21
core/TESTS/tests_caves.py Normal file
View File

@@ -0,0 +1,21 @@
"""
Modified for Expo April 2021.
"""
import unittest
import re
from django.test import TestCase, SimpleTestCase, TransactionTestCase, Client
class FixturePageTests(TestCase):
# The fixtures have a password hash which is compatible with plain-text password 'secretword'
fixtures = ['auth_users', 'expo_areas', 'expo_caves']
def setUp(self):
from django.contrib.auth.models import User
self.user = User.objects.get(username='expotest')
def tearDown(self):
pass