diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-01-12 18:27:56 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-01-12 18:37:14 +0100 |
| commit | a6c57dac661cff1beac7510532acccc7287ac636 (patch) | |
| tree | 3ec0a1d3729ea9c3dfade335f180381d2c0b30e6 /archaeological_files | |
| parent | caa6d9bdead4783e5eac0a45d5b60ed86d54df45 (diff) | |
| download | Ishtar-a6c57dac661cff1beac7510532acccc7287ac636.tar.bz2 Ishtar-a6c57dac661cff1beac7510532acccc7287ac636.zip | |
✅ basic tests for all statistics modality
Diffstat (limited to 'archaeological_files')
| -rw-r--r-- | archaeological_files/tests.py | 12 |
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 |
