Skip to content

Conversation

@HazelYuAhiru
Copy link
Collaborator

@HazelYuAhiru HazelYuAhiru commented Oct 10, 2025

This PR defines the new query_parser structure, sets up test cases, and organizes existing query data within queries.py.

In the new query parser test file, I replaced the inline-defined queries with ones retrieved from queries.py for efficiency. However, this makes the test cases less intuitive, since we need to refer back to queries.py to see which queries are being used. It will be great if I can get some opinions or ideas on whether we should keep the old style (which causes duplication but more friendly to read) or stick with the new style (which is cleaner but less convenient for debugging).

Copy link
Collaborator

@colinthebomb1 colinthebomb1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I think this new style is better.

Copy link
Contributor

@baiqiushi baiqiushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's start with this. The benefit of this structure is the rules.py now looks more like our database. Maybe in the future we can synchronize test rules.py and our Postman tests DB together to maintain the code integrety.

@HazelYuAhiru HazelYuAhiru merged commit ca3cde2 into main Oct 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants