Skip to content

Commit

Permalink
[FIX] change test due to change of map's accurency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemry Jonathan committed Jul 4, 2017
1 parent d8f9d5e commit efc7d67
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions geoengine_base_geolocalize/tests/test_geoengine_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ def test_get_geo_point(self):
def test_geo_localize(self):
vals = {
'name': 'Partner Project',
'street': 'Rue au bois la dame',
'street': 'Rue Neuve 74',
'country_id': self.env.ref('base.be').id,
'zip': '6800',
'zip': '1000',
}
partner_id = self.env['res.partner'].create(vals)
partner_id.name = 'Other Partner'
partner_id.geo_localize()
# tested with one point into openstreet map
self.assertAlmostEqual(
partner_id.partner_latitude, 49.95353, 5,
partner_id.partner_latitude, 50.85396, 5,
'Latitude Should be equals')
self.assertAlmostEqual(
partner_id.partner_longitude, 5.40539, 5,
partner_id.partner_longitude, 4.35719, 5,
'Longitude Should be equals')
domain = [('id', '=', partner_id.id)]
partner_id.unlink()
Expand Down

0 comments on commit efc7d67

Please sign in to comment.