1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #34305 -- Changed GeoIP2 tests to use MaxMind test databases.

GEOIP_SETTINGS is removed from the global scope as this prevents
modifications to the settings using @override_settings in tests.

Additional improvements now that we have stable test databases include:

- Made testing more comprehensive and improved coverage
- Patched socket.gethostbyname() for whole test case
- Added testing of non-free GeoIP2 databases

Co-authored-by: Tom Forbes <tom@tomforb.es>
This commit is contained in:
Nick Pope
2021-03-30 11:52:12 +01:00
committed by Mariusz Felisiak
parent ed4f83782d
commit a93375e8ab
9 changed files with 159 additions and 129 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB