Tests: reuse name var

This commit is contained in:
Yohan Boniface 2023-09-20 09:50:13 +02:00
parent dfd04c33b0
commit a9b9a7e955

View file

@ -102,7 +102,7 @@ class DataLayerFactory(factory.django.DjangoModelFactory):
name = "test datalayer"
description = "test description"
display_on_load = True
settings = {"displayOnLoad": True, "browsable": True, "name": "test datalayer"}
settings = {"displayOnLoad": True, "browsable": True, "name": name}
geojson = factory.django.FileField()
@factory.post_generation