Skip to content

Commit

Permalink
Fix test Josm_deprecated_test
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jul 15, 2021
1 parent e03546a commit 60e1444
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions plugins/tests/Josm_deprecated_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#-*- coding: utf-8 -*-
import sys

from plugins.Plugin import TestPluginCommon
from plugins.Josm_deprecated import Josm_deprecated

Expand All @@ -15,10 +13,5 @@ class father:
n.init(None)
data = {'id': 0, 'lat': 0, 'lon': 0}

# Order of dict is different in py2 and py3
if sys.version_info < (3, ):
self.check_err(n.node(data, {u'is_in:sea': u'A', u'is_in:country:': u'B'}), expected={'class': 9002001, 'subclass': 355584917, 'fix': {'-': ['is_in:sea']}})
self.check_err(n.node(data, {u'is_in:country': u'A', u'is_in:sea': u'B'}), expected={'class': 9002001, 'subclass': 355584917, 'fix': {'-': ['is_in:sea']}})
else:
self.check_err(n.node(data, {u'is_in:sea': u'A', u'is_in:country:': u'B'}), expected={'class': 9002001, 'subclass': 355584917, 'fix': {'-': ['is_in:sea']}})
self.check_err(n.node(data, {u'is_in:country': u'A', u'is_in:sea': u'B'}), expected={'class': 9002001, 'subclass': 355584917, 'fix': {'-': ['is_in:country']}})
self.check_err(n.node(data, {u'is_in:sea': 'A', 'is_in:country:': 'B'}), expected={'class': 9002001, 'subclass': 1573738944, 'fix': {'-': ['is_in:sea']}})
self.check_err(n.node(data, {u'is_in:country': 'A', 'is_in:sea': 'B'}), expected={'class': 9002001, 'subclass': 1573738944, 'fix': {'-': ['is_in:country']}})

0 comments on commit 60e1444

Please sign in to comment.