Z-axis geometry upload fix
* adds clamping of 3D geometries to 2D geometries if uploaded using the map importer * extends tests for payment-document linkage * fixes bug in team-admin selection where autocomplete could not be resolved properly
This commit is contained in:
@@ -115,6 +115,19 @@ class BaseTestCase(TestCase):
|
||||
"""
|
||||
return f"{prefix}{generate_random_string(3, True)}"
|
||||
|
||||
def create_dummy_document(self, DocumentModel, instance):
|
||||
""" Creates a document db entry which can be used for tests
|
||||
|
||||
"""
|
||||
doc = DocumentModel.objects.create(
|
||||
title="TEST_doc",
|
||||
comment="",
|
||||
file=None,
|
||||
date_of_creation="1970-01-01",
|
||||
instance=instance,
|
||||
)
|
||||
return doc
|
||||
|
||||
def create_dummy_intervention(self):
|
||||
""" Creates an intervention which can be used for tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user