fix bim tests after changes in quantities calculations

This commit is contained in:
Andrej730
2024-07-31 13:05:23 +05:00
parent 159355d63a
commit a24bb069aa
4 changed files with 10 additions and 11 deletions
+3 -3
View File
@@ -684,17 +684,17 @@ def prop_is_roughly_value(prop, value):
value = replace_variables(value)
is_value = False
try:
exec(f'assert round(bpy.context.{prop}, 5) == "{value}"')
exec(f'assert round(bpy.context.{prop}, 3) == "{value}"')
is_value = True
except:
try:
exec(f"assert round(bpy.context.{prop}, 5) == {value}")
exec(f"assert round(bpy.context.{prop}, 3) == {value}")
is_value = True
except:
pass
if not is_value:
print(f"bpy.context.{prop}")
actual_value = round(eval(f"bpy.context.{prop}"), 5)
actual_value = round(eval(f"bpy.context.{prop}"), 3)
assert False, f"Value is {actual_value}"