tests: only check integer part of reproj result (#36515)
This commit is contained in:
parent
a68dccf8dd
commit
9f9f623cb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue