Closed mhl closed 6 years ago
Hi @dracos - I think I addressed all your comments on this pull request - are you OK with me squashing the fixups and merging that now?
Yeah, there were a couple of changes needed for the new build environment, it turned out, and I spotted a couple more places where requests to overpass weren't being patched, so I fixed those things too before merging.
There were existing doctests for the scripts that generate the KML files, but these weren't being run automatically. There were no tests at all for the import script, which meant that making any changes to it all is a nerve-wracking business, and it could do with some refactoring. This pull request uses py.test to run the existing doctests, and adds Django tests for the mapit_global_import management command. Test coverage reports are generated and submitted to coveralls.io.
This pull request also make changes to the code that should enable it to be run under Python 3 as well as Python 2, and tox is used to run the scripts on Python versions that might be currently relevant.