#25407: Mock GIS call to live domains
------------------------------------------------+------------------------
               Reporter:  MarkusH               |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  GIS                   |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Accepted              |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 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
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25407>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.e10e2843fd9ec1432fde7f470f30f554%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to