Skip to content

Commit

Permalink
add AsdfNode subclass empty init test
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jan 16, 2024
1 parent 5f37303 commit 0bba278
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions asdf/_tests/test_lazy_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ def test_node_inheritance(NodeClass, data, base):
assert isinstance(node, base)


@pytest.mark.parametrize(
"NodeClass,base",
[
(AsdfDictNode, dict),
(AsdfListNode, list),
(AsdfOrderedDictNode, dict),
],
)
def test_node_empty_init(NodeClass, base):
node = NodeClass()
assert type(node.data) == base


@pytest.mark.parametrize(
"node",
[
Expand Down

0 comments on commit 0bba278

Please sign in to comment.