Skip to content

Commit

Permalink
Extending test to enssure nxdata does not have default attribute refe…
Browse files Browse the repository at this point in the history
…rencing the a field.
  • Loading branch information
RubelMozumder committed Apr 26, 2024
1 parent 7d3d160 commit 6c20aec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/dataconverter/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ def test_set_default_group(temp_dict):
), "To test default attribute, entry attribute should be empty."

set_default_group(template)

assert (
template["/@default"] == "entry1"
), "To test the root level /@default should be empty."
Expand All @@ -505,6 +504,14 @@ def test_set_default_group(temp_dict):
"data2",
], "To test default attribute, entry attribute should be empty."

assert (
"/ENTRY[entry1]/NXODD_name[nxodd_name_2]/DATA[data2]/data2/@default"
not in template
), (
"Group can not have a default attribute refering any field,"
" if it is not supplied by reader."
)


def test_atom_type_extractor_and_hill_conversion():
"""
Expand Down

0 comments on commit 6c20aec

Please sign in to comment.