Commit 39a03998 authored by Romain Casati's avatar Romain Casati

Testing proj4py.

parent 9ee28f6c
......@@ -62,7 +62,17 @@ def test_requests(selenium):
def test_proj4py(selenium):
pass
result = selenium.run_basthon("""
import proj4py
# from WGS84 to Lambert93
proj = proj4py.proj4('EPSG:4326', 'EPSG:2154')
proj.forward((46.57824382381372, 2.468613626422624))
""")
assert result['stderr'] == ""
assert result['stdout'] == ""
target = eval(result['result']['result']['text/plain'])
assert target == (659306.8946611215, 6608826.400123728)
def test_IPython(selenium):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment