Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Sep 24, 2024
1 parent 5bcea83 commit 167ef77
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions tests/test_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,6 @@ def test_decoded_encoded_Skeleton(fly_legs_skeleton_json):
assert skeleton.matches(decoded_skeleton)


# def test_SkeletonEncoder(fly_legs_skeleton_json):
# """
# Test SkeletonEncoder.encode method.
# """
# # Get the skeleton from the fixture
# skeleton = Skeleton.load_json(fly_legs_skeleton_json)
# # Get the graph from the skeleton
# indexed_node_graph = skeleton._graph
# graph = json_graph.node_link_data(indexed_node_graph)

# # Encode the graph as a json string to test .encode method
# encoder = SkeletonEncoder()
# encoded_json_str = encoder.encode(graph)

# # Get the skeleton from the encoded json string
# decoded_skeleton = Skeleton.from_json(encoded_json_str)

# # Check that the decoded skeleton is the same as the original skeleton
# assert skeleton.matches(decoded_skeleton)

# encoded_data = json.loads(encoded_json_str)

# # Assert that the 'nodes' key exists and has the correct number of nodes
# assert 'nodes' in encoded_data
# assert len(encoded_data['nodes']) == len(skeleton.nodes)

# # Assert that the 'links' key exists and has the correct number of links
# assert 'links' in encoded_data
# assert len(encoded_data['links']) == len(skeleton.edges)

# # Check that py/id references are assigned to nodes
# for node_entry in encoded_data['nodes']:
# node_id = node_entry['id']
# assert isinstance(node_id, dict)
# assert 'py/id' in node_id or 'py/object' in node_id

# # Check that edges have the correct structure
# for link in encoded_data['links']:
# assert 'source' in link and 'target' in link
# assert isinstance(link['source'], dict)
# assert isinstance(link['target'], dict)


def test_add_dupe_node(skeleton):
"""
Test if adding a node with the same name to skeleton throws an exception.
Expand Down

0 comments on commit 167ef77

Please sign in to comment.