remove redundant imports from test methods

This commit is contained in:
Emily Soth 2025-05-12 13:26:12 -07:00
parent 0de5b2fa6f
commit d5f5258fc3
1 changed files with 0 additions and 2 deletions

View File

@ -18,7 +18,6 @@ class SpecUtilsUnitTests(unittest.TestCase):
def test_format_unit(self):
"""spec: test converting units to strings with format_unit."""
from natcap.invest import spec
for unit_name, expected in [
('meter', 'm'),
('meter / second', 'm/s'),
@ -32,7 +31,6 @@ class SpecUtilsUnitTests(unittest.TestCase):
def test_format_unit_raises_error(self):
"""spec: format_unit raises TypeError if not a pint.Unit."""
from natcap.invest import spec
with self.assertRaises(TypeError):
spec.format_unit({})