<filename>tests/test_constants.py<gh_stars>10-100
#
#  Copyright © 2022 Ingram Micro Inc. All rights reserved.
#
import pytest

from py_rql.constants import FilterLookups


@pytest.mark.parametrize('func', ('numeric', 'string', 'boolean'))
def test_filter_lookups_non_null(func):
    result = getattr(FilterLookups, func)()
    result.discard(FilterLookups.NULL)

    assert result == getattr(FilterLookups, func)(with_null=False)

<filename>tests/test_constants.py<gh_stars>10-100
#
#  Copyright © 2022 Ingram Micro Inc. All rights reserved.
#
import pytest

from py_rql.constants import FilterLookups


@pytest.mark.parametrize('func', ('numeric', 'string', 'boolean'))
def test_filter_lookups_non_null(func):
    result = getattr(FilterLookups, func)()
    result.discard(FilterLookups.NULL)

    assert result == getattr(FilterLookups, func)(with_null=False)

# #  Copyright © 2022 Ingram Micro Inc. All rights reserved. #