#26512: Add tests for the SpatialRefSysMixin.get_units() method
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: niconoe
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by niconoe):
Hi, I'm a new contributor and did my best here in my pull request.
In addition to testing the class method, I updated the docstring since it
was outdated and a bit vague IMHO and fixed a small issue with it: when
GDAL was present, the unit was returned as a `float` (seems good), but as
a string when GDAL was unavailable. It's now properly casted to a float in
such cases.
Cricticism is more than welcome!
--
Ticket URL: <https://code.djangoproject.com/ticket/26512#comment:2>
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/067.d6db23a31387c4e908fe117dda4bd525%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.