Skip to content

Conversation

@HarryKodden
Copy link

I stumbled on this during my own application stress testing, these queries where failing...
(age := 30)
PS. Filter is my AST geared Parser

    def test_numeric_operators(self):
        # Greater than
        filter_obj = Filter('age gt 20')
        assert filter_obj.match(self.user) is True

        # Greater than or equal
        filter_obj = Filter('age ge 30')
        assert filter_obj.match(self.user) is True

        # Less than
        filter_obj = Filter('age lt 40')
        assert filter_obj.match(self.user) is True

        # Less than or equal
        filter_obj = Filter('age le 30')
        assert filter_obj.match(self.user) is True

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.

1 participant