Skip to content

Commit 8c695bc

Browse files
committed
Fix tests
1 parent bf3efaa commit 8c695bc

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎src/entity_manager/cli.py‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,6 @@ def create(
166166
)
167167
sys.exit(1)
168168

169-
if prop_def.name in properties_dict:
170-
# Coerce value to correct type
171-
value = properties_dict[prop_def.name]
172-
try:
173-
coerced = coerce_property_value(value, prop_def.type)
174-
properties_dict[prop_def.name] = coerced
175-
except Exception as e:
176-
print(f"Error: Invalid value for property '{prop_def.name}': {e}", file=sys.stderr)
177-
sys.exit(1)
178-
179-
# Validate
180-
valid, error = entity_type.validate_property(prop_def.name, coerced)
181-
if not valid:
182-
print(f"Error: {error}", file=sys.stderr)
183-
sys.exit(1)
184-
185169
entity = backend.create(type=entity_type_name, properties=properties_dict)
186170
title = properties_dict.get("title", "")
187171
print(f"Created entity {entity.id}: {title}")

0 commit comments

Comments
 (0)