We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c566266 commit 552b413Copy full SHA for 552b413
1 file changed
tests/unit/databases/test_copy.py
@@ -95,6 +95,14 @@ def test_convert_node_to_ingest_with_unknown_type_does_not_error(subject):
95
assert ingest.source.key_values == {}
96
97
98
+def test_convert_node_to_ingest_with_none_type_does_not_error(subject):
99
+ """reorganize_node_key_properties should be a no-op when the node type is None."""
100
+ input_node = Node(type=None, properties={"name": "bob"})
101
+ ingest = subject.convert_node_to_ingest(input_node)
102
+ # When type is None, get_node_type_by_name returns None and the method returns early.
103
+ assert ingest.source.key_values == {}
104
+
105
106
def test_convert_relationship_to_ingest(subject):
107
rel = RelationshipWithNodes(
108
Node("Person", properties={"name": "Bob"}),
0 commit comments