Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Jun 1, 2024
1 parent ceda14a commit d349ecc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_export_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit d349ecc

Please sign in to comment.