From 22f17551e572ccffd1a8089b4d18c988548d7d54 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 2 Aug 2019 14:27:16 +0200 Subject: Fix scene units test failure after recent changes --- tests/python/bl_pyapi_bpy_utils_units.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/python') diff --git a/tests/python/bl_pyapi_bpy_utils_units.py b/tests/python/bl_pyapi_bpy_utils_units.py index 88d5cb941bd..d5d9c9c707b 100644 --- a/tests/python/bl_pyapi_bpy_utils_units.py +++ b/tests/python/bl_pyapi_bpy_utils_units.py @@ -37,13 +37,13 @@ class UnitsTesting(unittest.TestCase): ('IMPERIAL', 'LENGTH', 3, False, False, 0.3048, "1'"), ('IMPERIAL', 'LENGTH', 3, False, True, 0.3048, "1ft"), ('IMPERIAL', 'LENGTH', 4, True, False, 0.3048 * 2 + 0.0254 * 5.5, "2' 5.5\""), - ('IMPERIAL', 'LENGTH', 3, False, False, 1609.344 * 1e6, "1000000mi"), - ('IMPERIAL', 'LENGTH', 6, False, False, 1609.344 * 1e6, "1000000mi"), - ('METRIC', 'LENGTH', 3, True, False, 1000 * 2 + 0.001 * 15, "2km 2cm"), - ('METRIC', 'LENGTH', 5, True, False, 1234.56789, "1km 234.6m"), - ('METRIC', 'LENGTH', 6, True, False, 1234.56789, "1km 234.57m"), - ('METRIC', 'LENGTH', 9, False, False, 1234.56789, "1.234568km"), - ('METRIC', 'LENGTH', 9, True, False, 1000.000123456789, "1km 0.123mm"), + ('IMPERIAL', 'LENGTH', 3, False, False, 1609.344 * 1e6, "1000000 mi"), + ('IMPERIAL', 'LENGTH', 6, False, False, 1609.344 * 1e6, "1000000 mi"), + ('METRIC', 'LENGTH', 3, True, False, 1000 * 2 + 0.001 * 15, "2 km 2 cm"), + ('METRIC', 'LENGTH', 5, True, False, 1234.56789, "1 km 234.6 m"), + ('METRIC', 'LENGTH', 6, True, False, 1234.56789, "1 km 234.57 m"), + ('METRIC', 'LENGTH', 9, False, False, 1234.56789, "1.234568 km"), + ('METRIC', 'LENGTH', 9, True, False, 1000.000123456789, "1 km 0.123 mm"), ) def test_units_inputs(self): -- cgit v1.2.3