From 25b8fc2e1dfae3022a5ff657076de820918a040b Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 17 Apr 2021 20:45:38 +0100 Subject: test suite with users logins --- core/TESTS/tests_caves.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 core/TESTS/tests_caves.py (limited to 'core/TESTS/tests_caves.py') diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py new file mode 100644 index 0000000..84a0d97 --- /dev/null +++ b/core/TESTS/tests_caves.py @@ -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 + + -- cgit v1.2.3