Skip to content

Commit 282d812

Browse files
committed
test with lowercase
1 parent c078b37 commit 282d812

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

store/neurostore/resources/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def validate_search_query(query: str) -> bool:
5757
Returns:
5858
bool: True if the query is valid, False otherwise.
5959
"""
60+
query = query.upper()
61+
6062
# Check for valid parentheses
6163
if not validate_parentheses(query):
6264
raise errors.SyntaxError("Unmatched parentheses")

store/neurostore/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ def simple_neurosynth_annotation(session, ingest_neurosynth):
597597
"Unmatched parentheses",
598598
),
599599
('"autism" OR "ASD" OR "autistic" OR ', "Query cannot end with an operator"),
600+
("memory and", "Query cannot end with an operator"),
600601
(
601602
'(("Autism Spectrum Disorder" OR "autism spectrum disorder") OR ("Autism" OR "autism") '
602603
'OR ("ASD")) AND (("decision*" OR "Dec',

0 commit comments

Comments
 (0)