tests: only check integer part of reproj result (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 20:19:04 +01:00
parent a68dccf8dd
commit 9f9f623cb4
1 changed files with 3 additions and 1 deletions

View File

@ -532,4 +532,6 @@ def test_reproj():
lazy_formdata = LazyFormData(MockFormData())
tmpl = Template('{% with form_geoloc_base|reproj:"EPSG:3946" as c %}{{c.0}}/{{c.1}}{% endwith %}')
assert tmpl.render(CompatibilityNamesDict({'form': lazy_formdata})) == '1625337.15483/5422836.71627'
coords = tmpl.render(CompatibilityNamesDict({'form': lazy_formdata})).split('/')
assert int(float(coords[0])) == 1625337
assert int(float(coords[1])) == 5422836