summaryrefslogtreecommitdiffstats
path: root/core/TESTS
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-28 14:42:26 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-28 14:42:26 +0100
commitbf1c683fd09ad9c984748e5abc18a610cca03ee1 (patch)
treeac8da18924240a6eee79a84c4146746d16b32210 /core/TESTS
parent122cdd7fc8620b2348d75b1bb786ae4202db9a55 (diff)
downloadtroggle-bf1c683fd09ad9c984748e5abc18a610cca03ee1.tar.gz
troggle-bf1c683fd09ad9c984748e5abc18a610cca03ee1.tar.bz2
troggle-bf1c683fd09ad9c984748e5abc18a610cca03ee1.zip
fixing parent blocks & titles
Diffstat (limited to 'core/TESTS')
-rw-r--r--core/TESTS/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index 0e46ba7..a433e02 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -1,4 +1,6 @@
"""
+We are using unittest for troggle.
+
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
@@ -42,7 +44,7 @@ class SimpleTest(SimpleTestCase):
from django.template.defaultfilters import slugify
from django.utils.timezone import get_current_timezone, make_aware
from troggle.core.models import DataIssue, Expedition
- from troggle.core.models_caves import Cave, OtherCaveName, getCaveByReference, LogbookEntry, PersonTrip
+ from troggle.core.models_caves import Cave, OtherCaveName, LogbookEntry, PersonTrip
from parsers.people import GetPersonExpeditionNameLookup
def test_import_core_views_caves(self):
from django.http import HttpResponse, HttpResponseRedirect
@@ -52,6 +54,7 @@ class SimpleTest(SimpleTestCase):
from troggle.core.forms import CaveForm, CaveAndEntranceFormSet, VersionControlCommentForm, EntranceForm, EntranceLetterForm
from troggle.helper import login_required_if_public
def test_import_parses_mix(self):
+ from troggle.parsers.logbooks import GetCaveLookup
import troggle.settings
import troggle.flatpages.models
import troggle.logbooksdump