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:38:37 +0100 |
| commit | 851231826649110f7e8e83192ed2a990750a0aa8 (patch) | |
| tree | 2c2df74f648d56ae4784214ba19e0cf6438ba552 /archaeological_files | |
| parent | cee816ef28218edcf9d1a8405cd23878ac3514e0 (diff) | |
| download | Ishtar-851231826649110f7e8e83192ed2a990750a0aa8.tar.bz2 Ishtar-851231826649110f7e8e83192ed2a990750a0aa8.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 89a84f64f..ce61d7888 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, \ @@ -262,6 +263,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 |
