Skip to content

Commit

Permalink
Move layer diff_lines to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik authored and index-git committed Aug 4, 2021
1 parent 2dbdf79 commit ec3032a
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions tests/static_publications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
USERS = {OWNER, OWNER2, NOT_OWNER, }
HEADERS = {user: process_client.get_authz_headers(user) for user in USERS}

MICKA_XML_LAYER_DIFF_LINES = [
{'plus_line': '+ <gco:CharacterString>m-81c0debe-b2ea-4829-9b16-581083b29907</gco:CharacterString>\n',
'minus_line_starts_with': '- <gco:CharacterString>m',
'minus_line_ends_with': '</gco:CharacterString>\n',
},
{'plus_line': '+ <gco:Date>2007-05-25</gco:Date>\n',
'minus_line_starts_with': '- <gco:Date>',
'minus_line_ends_with': '</gco:Date>\n',
},
{'plus_line': '+ <gco:Date>2019-12-07</gco:Date>\n',
'minus_line_starts_with': '- <gco:Date>',
'minus_line_ends_with': '</gco:Date>\n',
},
]

PUBLICATIONS = {
################################################################################
# LAYERS
Expand Down Expand Up @@ -428,20 +443,7 @@
'file_type': settings.FILE_TYPE_VECTOR,
'style_type': 'sld',
'micka_xml': {'filled_template': 'test_tools/data/micka/rest_test_filled_template.xml',
'diff_lines': [
{'plus_line': '+ <gco:CharacterString>m-81c0debe-b2ea-4829-9b16-581083b29907</gco:CharacterString>\n',
'minus_line_starts_with': '- <gco:CharacterString>m',
'minus_line_ends_with': '</gco:CharacterString>\n',
},
{'plus_line': '+ <gco:Date>2007-05-25</gco:Date>\n',
'minus_line_starts_with': '- <gco:Date>',
'minus_line_ends_with': '</gco:Date>\n',
},
{'plus_line': '+ <gco:Date>2019-12-07</gco:Date>\n',
'minus_line_starts_with': '- <gco:Date>',
'minus_line_ends_with': '</gco:Date>\n',
},
],
'diff_lines': MICKA_XML_LAYER_DIFF_LINES,
'diff_lines_len': 29,
},
},
Expand Down

0 comments on commit ec3032a

Please sign in to comment.