1from geopandas.tools._show_versions import ( 2 _get_C_info, 3 _get_deps_info, 4 _get_sys_info, 5 show_versions, 6) 7 8 9def test_get_sys_info(): 10 sys_info = _get_sys_info() 11 12 assert "python" in sys_info 13 assert "executable" in sys_info 14 assert "machine" in sys_info 15 16 17def test_get_c_info(): 18 C_info = _get_C_info() 19 20 assert "GEOS" in C_info 21 assert "GEOS lib" in C_info 22 assert "GDAL" in C_info 23 assert "GDAL data dir" in C_info 24 assert "PROJ" in C_info 25 assert "PROJ data dir" in C_info 26 27 28def test_get_deps_info(): 29 deps_info = _get_deps_info() 30 31 assert "geopandas" in deps_info 32 assert "pandas" in deps_info 33 assert "fiona" in deps_info 34 assert "numpy" in deps_info 35 assert "shapely" in deps_info 36 assert "rtree" in deps_info 37 assert "pyproj" in deps_info 38 assert "matplotlib" in deps_info 39 assert "mapclassify" in deps_info 40 assert "geopy" in deps_info 41 assert "psycopg2" in deps_info 42 assert "geoalchemy2" in deps_info 43 44 45def test_show_versions(capsys): 46 show_versions() 47 out, err = capsys.readouterr() 48 49 assert "python" in out 50 assert "GEOS" in out 51 assert "geopandas" in out 52