forked from expo/troggle
test suite with users logins
This commit is contained in:
21
core/TESTS/tests_caves.py
Normal file
21
core/TESTS/tests_caves.py
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user