summaryrefslogtreecommitdiff
path: root/archaeological_files/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/tests.py')
-rw-r--r--archaeological_files/tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_files/tests.py b/archaeological_files/tests.py
index ee323591a..4972d9735 100644
--- a/archaeological_files/tests.py
+++ b/archaeological_files/tests.py
@@ -33,6 +33,7 @@ from ishtar_common.tests import (
WizardTest,
WizardTestFormData as FormData,
FILE_TOWNS_FIXTURES,
+ StatisticsTest
)
from ishtar_common.models import Town, IshtarSiteProfile, Person, PersonType, \
@@ -264,6 +265,17 @@ class FileTest(TestCase, FileInit):
status_code=302)
+class FileSearchTest(TestCase, StatisticsTest):
+ fixtures = FILE_TOWNS_FIXTURES
+ SEARCH_URL = "get-file"
+ MODEL = models.File
+
+ def setUp(self):
+ IshtarSiteProfile.objects.get_or_create(slug="default", active=True)
+ self.username, self.password, self.user = create_superuser()
+ models.File.objects.create(file_type=models.FileType.objects.all()[0])
+
+
class FileCostTest(TestCase, FileInit):
fixtures = FILE_TOWNS_FIXTURES
model = models.File