diff --git a/osm_fieldwork/xlsforms/__init__.py b/osm_fieldwork/xlsforms/__init__.py index dae88a6d2..83b6e4a58 100644 --- a/osm_fieldwork/xlsforms/__init__.py +++ b/osm_fieldwork/xlsforms/__init__.py @@ -4,26 +4,7 @@ xlsforms_path = os.path.dirname(os.path.abspath(__file__)) -amenities = f"{xlsforms_path}/amenities.xls" +entities_registration = f"{xlsforms_path}/entities_registration.xls" +entities_registration_xml = f"{xlsforms_path}/entities_registration.xml" + buildings = f"{xlsforms_path}/buildings.xls" -camping = f"{xlsforms_path}/camping.xls" -cemeteries = f"{xlsforms_path}/cemeteries.xls" -education = f"{xlsforms_path}/education.xls" -health = f"{xlsforms_path}/health.xls" -highways = f"{xlsforms_path}/highways.xls" -historical = f"{xlsforms_path}/historical.xls" -hotspring = f"{xlsforms_path}/hotspring.xls" -landusage = f"{xlsforms_path}/landusage.xls" -landuse = f"{xlsforms_path}/landuse.xls" -municipality = f"{xlsforms_path}/municipality.xls" -nature = f"{xlsforms_path}/nature.xls" -places = f"{xlsforms_path}/places.xls" -religious = f"{xlsforms_path}/religious.xls" -solidwaste = f"{xlsforms_path}/solidwaste.xls" -toilets = f"{xlsforms_path}/toilets.xls" -towns = f"{xlsforms_path}/towns.xls" -transportation = f"{xlsforms_path}/transportation.xls" -waste_collection = f"{xlsforms_path}/waste_collection.xlsx" -wastedisposal = f"{xlsforms_path}/wastedisposal.xls" -waterpoints = f"{xlsforms_path}/waterpoints.xls" -waterways = f"{xlsforms_path}/waterways.xls" diff --git a/osm_fieldwork/xlsforms/buildings.xls b/osm_fieldwork/xlsforms/buildings.xls index d29aff715..6bee2ba1f 100644 Binary files a/osm_fieldwork/xlsforms/buildings.xls and b/osm_fieldwork/xlsforms/buildings.xls differ diff --git a/osm_fieldwork/xlsforms/entities_registration.xls b/osm_fieldwork/xlsforms/entities_registration.xls new file mode 100644 index 000000000..dfcb5250e Binary files /dev/null and b/osm_fieldwork/xlsforms/entities_registration.xls differ diff --git a/osm_fieldwork/xlsforms/entities_registration.xml b/osm_fieldwork/xlsforms/entities_registration.xml new file mode 100644 index 000000000..362d88d46 --- /dev/null +++ b/osm_fieldwork/xlsforms/entities_registration.xml @@ -0,0 +1 @@ +Entity Creation Form \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index fc46a4005..73bda10f4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -26,7 +26,7 @@ from osm_fieldwork.OdkCentral import OdkAppUser, OdkForm, OdkProject from osm_fieldwork.OdkCentralAsync import OdkEntity -from osm_fieldwork.xlsforms.entities import registration_form_xml +from osm_fieldwork.xlsforms import entities_registration_xml logging.basicConfig( level="DEBUG", @@ -180,7 +180,7 @@ async def odk_entity_cleanup(odk_entity): entity.user, entity.passwd, ) - form_name = form.createForm(odk_id, str(registration_form_xml), publish=True) + form_name = form.createForm(odk_id, str(entities_registration_xml), publish=True) if not form_name: raise AssertionError("Failed to create form")