summaryrefslogtreecommitdiff
path: root/archaeological_context_records/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/tests.py')
-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": "",