Exemplo n.º 1
0
    def test_none_value(self):
        ftr = filter_query.parse("foo == None")

        self.assertIsInstance(flt, filtering.FilterChain)

        ftr = filter_query.parse("foo == NULL")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 2
0
    def test_none_value(self):
        ftr = filter_query.parse("foo == None")

        self.assertIsInstance(flt, filtering.FilterChain)

        ftr = filter_query.parse("foo == NULL")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 3
0
    def test_none_value(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse("foo == None")

        assert isinstance(ftr, filtering.FilterChain)

        ftr = filter_query.parse("foo == NULL")

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 4
0
    def test_or_clause(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse('foo == "bar" OR bar == 123')

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 5
0
    def test_float_value(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse("foo == 123.45")

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 6
0
    def test_string_value(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse('foo == "123 bar"')

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 7
0
    def test_single_operator(self):
        ftr = filter_query.parse("foo == 123")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 8
0
    def test_nested_clauses(self):
        ftr = filter_query.parse('((foo == "bar" OR bar == 123) AND eek == 321)')

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 9
0
    def test_float_value(self):
        ftr = filter_query.parse("foo == 123.45")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 10
0
    def test_float_value(self):
        ftr = filter_query.parse("foo == 123.45")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 11
0
    def test_string_value(self):
        ftr = filter_query.parse('foo == "123 bar"')

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 12
0
    def test_single_operator(self):
        ftr = filter_query.parse("foo == 123")

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 13
0
    def test_nested_clauses(self):
        ftr = filter_query.parse(
            '((foo == "bar" OR bar == 123) AND eek == 321)')

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 14
0
    def test_or_clause(self):
        ftr = filter_query.parse('foo == "bar" OR bar == 123')

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 15
0
    def test_nested_clauses(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse('((foo == "bar" OR bar == 123) AND eek == 321)')

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 16
0
    def test_or_clause(self):
        ftr = filter_query.parse('foo == "bar" OR bar == 123')

        self.assertIsInstance(flt, filtering.FilterChain)
Exemplo n.º 17
0
    def test_single_operator(self):
        pytest.skip("Proof of concept code")

        ftr = filter_query.parse("foo == 123")

        assert isinstance(ftr, filtering.FilterChain)
Exemplo n.º 18
0
    def test_string_value(self):
        ftr = filter_query.parse('foo == "123 bar"')

        self.assertIsInstance(flt, filtering.FilterChain)