Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test workflows #13

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/Josm_FranceSpecificRules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ class father:
with with_options(n, {'country': 'FR'}):
self.check_not_err(n.way(data, {'highway': 'primary', 'junction': 'roundabout', 'nat_ref': '62A901609CD_2D', 'operator': 'SANEF'}, [0]), expected={'class': 9019002, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
self.check_err(n.way(data, {'highway': 'primary', 'nat_ref': '62A901609CD_2D', 'operator': 'SANEF'}, [0]), expected={'class': 9019002, 'subclass': 0})
self.check_not_err(n.way(data, {'highway': 'primary', 'nat_ref': '62A901609CD_2D', 'operator': 'SANEF'}, [0]), expected={'class': 9019002, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
self.check_not_err(n.way(data, {'highway': 'service', 'junction': 'roundabout', 'nat_ref': '62A801609CD_12D', 'operator': 'SANEF'}, [0]), expected={'class': 9019002, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
Expand Down Expand Up @@ -1101,7 +1101,7 @@ class father:
with with_options(n, {'country': 'FR'}):
self.check_not_err(n.way(data, {'highway': 'residential', 'name': 'impasse', 'ref:FR:FANTOIR': '751064581T'}, [0]), expected={'class': 9019005, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
self.check_not_err(n.way(data, {'highway': 'residential', 'name': 'impasse', 'ref:FR:FANTOIR': '75106S581T;67317B012Y'}, [0]), expected={'class': 9019005, 'subclass': 0})
self.check_err(n.way(data, {'highway': 'residential', 'name': 'impasse', 'ref:FR:FANTOIR': '75106S581T;67317B012Y'}, [0]), expected={'class': 9019005, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
self.check_not_err(n.way(data, {'highway': 'residential', 'name': 'impasse', 'ref:FR:FANTOIR': '95106A581'}, [0]), expected={'class': 9019005, 'subclass': 0})
with with_options(n, {'country': 'FR'}):
Expand Down
12 changes: 6 additions & 6 deletions plugins/TagFix_Area.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ def test(self):
a = TagFix_Area(None)
a.init(None)

for t in [{"area":"yes", "railway": "rail"},
{"area":"no", "amenity": "bakery"},
for t in [{"a":"yes", "railway": "rail"},
{"a":"no", "amenity": "bakery"},
]:
self.check_err(a.way(None, t, None), t)

for t in [{"area":"yes", "railway": "platform"},
{"area":"yes", "amenity": "bakery"},
{"area":"no", "building": "yes"},
for t in [{"a":"yes", "railway": "platform"},
{"a":"yes", "amenity": "bakery"},
{"a":"no", "building": "yes"},
]:
assert not a.way(None, t, None), t

# Unnecessary area=yes, dealt with by JOSM mapcss rules instead
for t in [{"area":"yes", "building": "yes"},
for t in [{"a":"yes", "building": "yes"},
]:
assert not a.way(None, t, None), t
15,303 changes: 8,102 additions & 7,201 deletions tests/results/sax.test.FR.xml

Large diffs are not rendered by default.

13,706 changes: 7,266 additions & 6,440 deletions tests/results/sax.test.Lang_fr.xml

Large diffs are not rendered by default.

13,036 changes: 6,921 additions & 6,115 deletions tests/results/sax.test.Lang_fr_nl.xml

Large diffs are not rendered by default.

12,999 changes: 6,902 additions & 6,097 deletions tests/results/sax.test.xml

Large diffs are not rendered by default.

12,358 changes: 6,594 additions & 5,764 deletions tests/results/sax.test_resume.xml

Large diffs are not rendered by default.

11,218 changes: 6,008 additions & 5,210 deletions tests/results/sax.test_resume_empty.xml

Large diffs are not rendered by default.

12,999 changes: 6,902 additions & 6,097 deletions tests/results/sax.test_resume_full.xml

Large diffs are not rendered by default.

Loading