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:
committed by
Mariusz Felisiak
parent
ed4f83782d
commit
a93375e8ab
BIN
tests/gis_tests/data/geoip2/GeoLite2-Country-Test.mmdb
Normal file
BIN
tests/gis_tests/data/geoip2/GeoLite2-Country-Test.mmdb
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user