From d349ecc0caca6b47154c7125384369791d5de879 Mon Sep 17 00:00:00 2001 From: Alexander Watzinger Date: Sat, 1 Jun 2024 13:16:40 +0200 Subject: [PATCH] Tests --- tests/test_export_import.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_export_import.py b/tests/test_export_import.py index 46811d99f..bb26250f6 100644 --- a/tests/test_export_import.py +++ b/tests/test_export_import.py @@ -200,7 +200,7 @@ def test_export(self) -> None: url_for('import_data', class_='place', project_id=p_id), data={'file': file}, follow_redirects=True) - assert b'multiple parent ids' in rv.data + assert b'multiple parent IDs' in rv.data data_frame.at[3, 'openatlas_parent_id'] = 99999 data_frame.to_csv( @@ -235,7 +235,10 @@ def test_export(self) -> None: data_frame.at[0, 'administrative_unit'] = austria.id data_frame.at[0, 'historical_place'] = carantania.id type_ids_list = [ - boundary_mark.id, infrastructure.id, austria.id, place_type.id] + boundary_mark.id, + infrastructure.id, + austria.id, + place_type.id] data_frame.at[0, 'type_ids'] = ' '.join(map(str, type_ids_list)) data_frame.at[0, 'value_types'] = f'{height.id};42' data_frame.at[0, 'references'] = f'{reference.id};IV'