summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-17 12:10:51 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-17 12:37:13 +0200
commit65a287f42c36bb1c49fb3dff81a92b1a54de1d3c (patch)
tree61fffdf56ca4b40fee912a73cc87bbac4853beff /archaeological_context_records
parent05ea92744e8015d2a9f8d9cdf54edfe4770c31b9 (diff)
downloadIshtar-65a287f42c36bb1c49fb3dff81a92b1a54de1d3c.tar.bz2
Ishtar-65a287f42c36bb1c49fb3dff81a92b1a54de1d3c.zip
✅ fix tests
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py
index ae27e56d1..da6bcfc30 100644
--- a/archaeological_context_records/tests.py
+++ b/archaeological_context_records/tests.py
@@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# See the file COPYING for details.
-import copy
import csv
import json
from io import StringIO
@@ -25,7 +24,7 @@ import locale
from django.apps import apps
from django.conf import settings
from django.contrib.auth.models import Permission
-from django.core.exceptions import ValidationError, ImproperlyConfigured
+from django.core.exceptions import ValidationError
from django.core.files.uploadedfile import SimpleUploadedFile
from django.template.defaultfilters import slugify
from django.test.client import Client
@@ -46,6 +45,7 @@ from ishtar_common.models import (
from ishtar_common import forms_common
from archaeological_operations.tests import OperationInitTest, ImportTest
from archaeological_operations import models as models_ope
+from archaeological_operations.views import RELATION_FORMSET_EXTRA_FORM
from archaeological_context_records import models
from ishtar_common.utils import generate_relation_graph
@@ -1425,7 +1425,7 @@ class ContextRecordRelationTest(ContextRecordInit, TestCase):
def init_data(self):
nb_crs = 2
data = {}
- for idx in range(nb_crs + views.RELATION_FORMSET_EXTRA_FORM):
+ for idx in range(nb_crs + RELATION_FORMSET_EXTRA_FORM):
data.update({
f"form-{idx}-pk": "",
f"form-{idx}-right_record": "",