﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25407	Remove network dependency in GeoIP tests	Markus Holtermann	Anton Baklanov	"Occasionally some GIS tests fail due to connectivity or availability issues when trying to get live data. Those requests should be mocked away. One of the tests failing is `gis_tests.test_geoip2.GeoIPTest.test05_unicode_response`:

{{{#!python
ERROR [15.017s]: test05_unicode_response (gis_tests.test_geoip2.GeoIPTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/jenkins/workspace/pull-requests-trusty/database/postgis/label/trusty-pr/python/python2.7/tests/gis_tests/test_geoip2.py"", line 127, in test05_unicode_response
    d = g.city(""nigde.edu.tr"")
  File ""/home/jenkins/workspace/pull-requests-trusty/database/postgis/label/trusty-pr/python/python2.7/django/contrib/gis/geoip2/base.py"", line 172, in city
    enc_query = self._check_query(query, city=True)
  File ""/home/jenkins/workspace/pull-requests-trusty/database/postgis/label/trusty-pr/python/python2.7/django/contrib/gis/geoip2/base.py"", line 162, in _check_query
    query = socket.gethostbyname(query)
gaierror: [Errno -2] Name or service not known
}}}"	Cleanup/optimization	closed	GIS	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
