Essentially, Tom Forbes proposes committing MaxMind test data to the
django repo to enable the `test_geoip2` to run without having to download
the city and country test files. Looking at the PR, a small refactor was
also necessary to enable using `@override_settings` to point to the files.
[https://github.com/django/django/pull/14215 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34305>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Looks good! Please refer to this ticket number in the commit message.
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:1>
* needs_better_patch: 0 => 1
Comment:
Both PRs are no longer mergeable.
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:2>
* keywords: => geoip, geoip2, maxmind, maxmind-db, mmdb
* needs_better_patch: 1 => 0
* owner: Tom Forbes => Nick Pope
Comment:
[https://github.com/django/django/pull/17575 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a93375e8ab26e7cb22c6ee7e4bf23bf2d6ed170d" a93375e8]:
{{{
#!CommitTicketReference repository=""
revision="a93375e8ab26e7cb22c6ee7e4bf23bf2d6ed170d"
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 <t...@tomforb.es>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"ed4f83782d9f3404ad600f6131ef78244ff1e162" ed4f837]:
{{{
#!CommitTicketReference repository=""
revision="ed4f83782d9f3404ad600f6131ef78244ff1e162"
Refs #34305 -- Added SimpleTestCase.enterClassContext() on Python < 3.11.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34305#comment:5>