Skip to content

Commit

Permalink
Add character exclusion to copier call test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Feb 20, 2024
1 parent 5f5df4b commit 35cc8e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snakebids/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def test_create_fails_when_snakebids_version_specifies_extras(

@given(
name=st.from_regex(r"^[a-zA-Z_][a-zA-Z_0-9]*$"),
version=st.text(st.characters(blacklist_characters=["@", ";", "["]))
version=st.text(st.characters(blacklist_characters=["@", ";", "["])).filter(
lambda s: not s.startswith("-")
)
| st.none(),
)
@allow_function_scoped
Expand Down

0 comments on commit 35cc8e0

Please sign in to comment.