diff options
Diffstat (limited to 'archaeological_finds/tests/import_loca_test.json')
-rw-r--r-- | archaeological_finds/tests/import_loca_test.json | 305 |
1 files changed, 305 insertions, 0 deletions
diff --git a/archaeological_finds/tests/import_loca_test.json b/archaeological_finds/tests/import_loca_test.json new file mode 100644 index 000000000..1f0a9054a --- /dev/null +++ b/archaeological_finds/tests/import_loca_test.json @@ -0,0 +1,305 @@ +[ +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "Importeur test", + "slug": "importeur-test", + "description": null, + "associated_models": [ + "archaeological_finds.models_finds.Find" + ], + "is_template": false, + "unicity_keys": "external_id", + "available": true, + "users": [], + "created_models": [ + [ + "archaeological_warehouse.models.Container" + ], + [ + "archaeological_finds.models_finds.Find" + ], + [ + "archaeological_finds.models.BaseFind" + ] + ] + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "ID externe", + "importer_type": [ + "importeur-test" + ], + "col_number": 1, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Localisation 1", + "importer_type": [ + "importeur-test" + ], + "col_number": 5, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Localisation 2", + "importer_type": [ + "importeur-test" + ], + "col_number": 6, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Localisation 3", + "importer_type": [ + "importeur-test" + ], + "col_number": 7, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "D\u00e9p\u00f4t", + "importer_type": [ + "importeur-test" + ], + "col_number": 2, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Ref. container", + "importer_type": [ + "importeur-test" + ], + "col_number": 3, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type de contenant", + "importer_type": [ + "importeur-test" + ], + "col_number": 4, + "description": "", + "regexp_pre_filter": null, + "value_format": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 1 + ], + "target": "external_id", + "formater_type": [ + "UnicodeFormater", + "100", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 5 + ], + "target": "set_localisation_1", + "formater_type": [ + "UnicodeFormater", + "10", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 6 + ], + "target": "set_localisation_2", + "formater_type": [ + "UnicodeFormater", + "10", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 7 + ], + "target": "set_localisation_3", + "formater_type": [ + "UnicodeFormater", + "10", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 2 + ], + "target": "container__location__external_id", + "formater_type": [ + "UnicodeFormater", + "100", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 3 + ], + "target": "container__reference", + "formater_type": [ + "UnicodeFormater", + "30", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "importeur-test", + 4 + ], + "target": "container__container_type", + "formater_type": [ + "TypeFormater", + "archaeological_warehouse.models.ContainerType", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "importeur-test", + 2 + ], + "field_name": "container__responsible__external_id", + "force_new": false, + "concat": false, + "concat_str": null + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "importeur-test", + 3 + ], + "field_name": "container__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "importeur-test", + 2 + ], + "field_name": "container__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +} +] |