From 65a287f42c36bb1c49fb3dff81a92b1a54de1d3c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Sep 2024 12:10:51 +0200 Subject: ✅ fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_context_records/tests.py') 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 . # 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": "", -- cgit v1.2.3