OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Fix test suite issues related to OS upgrade #3275

Closed hectcastro closed 4 years ago

hectcastro commented 4 years ago

When checking to determine the ecoservice status via systemd, ensure that Python decodes the command output as UTF-8 instead of ASCII because the systemd output contains non-ASCII values.

Also, alter the approach when making area and runoff reduction assertions. Aim to be within a small percentage of the expected value vs. matching the integer-parts exactly.

Depends on https://github.com/OpenTreeMap/otm-cloud/pull/487

Testing

Please use https://github.com/OpenTreeMap/otm-cloud/pull/487 to review this PR.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.001%) to 83.784% when pulling 09887ee5adfffffebe01f0823c3c12952b779e59 on feature/hmc/systemd-non-ascii-output into e2f059425082fdd4386b7fbaa05c7f3a2795e46a on develop.

hectcastro commented 4 years ago

@azavea-bot rebuild