Skip to content

Commit

Permalink
Relax character restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Apr 5, 2024
1 parent 15788f5 commit 0a97842
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@

#### TODO: Provide this in zarr.strategies
# Copied from Xarray
# only use characters within the "Latin Extended-A" subset of unicode
_readable_characters = st.characters(categories=["L", "N"], max_codepoint=0x017F)
_readable_strings = st.text(_readable_characters, max_size=5)
_attr_keys = st.text(_readable_characters, min_size=1)
_attr_keys = st.text(st.characters(), min_size=1)
_attr_values = st.recursive(
st.none() | st.booleans() | _readable_strings,
st.none() | st.booleans() | st.text(st.characters(), max_size=5),
lambda children: st.lists(children) | st.dictionaries(_attr_keys, children),
max_leaves=3,
)
Expand Down

0 comments on commit 0a97842

Please sign in to comment.