# pylint: disable=C0103,C0111,C0302,W0212

import pytest
import quasardb


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


def test_max_cardinality_throws_when_value_is_zero(qdbd_connection):
    with pytest.raises(quasardb.InvalidArgumentError):
        qdbd_connection.options().set_max_cardinality(0)


def test_max_cardinality_throws_when_value_is_negative(qdbd_connection):
    with pytest.raises(TypeError):
        qdbd_connection.options().set_max_cardinality(-143)

e6d3374cc95ade01cf22af292866624ec4096f14
<mask token>


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


<mask token>

<mask token>


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


<mask token>


def test_max_cardinality_throws_when_value_is_negative(qdbd_connection):
    with pytest.raises(TypeError):
        qdbd_connection.options().set_max_cardinality(-143)

<mask token>


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


def test_max_cardinality_throws_when_value_is_zero(qdbd_connection):
    with pytest.raises(quasardb.InvalidArgumentError):
        qdbd_connection.options().set_max_cardinality(0)


def test_max_cardinality_throws_when_value_is_negative(qdbd_connection):
    with pytest.raises(TypeError):
        qdbd_connection.options().set_max_cardinality(-143)

import pytest
import quasardb


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


def test_max_cardinality_throws_when_value_is_zero(qdbd_connection):
    with pytest.raises(quasardb.InvalidArgumentError):
        qdbd_connection.options().set_max_cardinality(0)


def test_max_cardinality_throws_when_value_is_negative(qdbd_connection):
    with pytest.raises(TypeError):
        qdbd_connection.options().set_max_cardinality(-143)

# pylint: disable=C0103,C0111,C0302,W0212

import pytest
import quasardb


def test_max_cardinality_ok(qdbd_connection):
    qdbd_connection.options().set_max_cardinality(140000)


def test_max_cardinality_throws_when_value_is_zero(qdbd_connection):
    with pytest.raises(quasardb.InvalidArgumentError):
        qdbd_connection.options().set_max_cardinality(0)


def test_max_cardinality_throws_when_value_is_negative(qdbd_connection):
    with pytest.raises(TypeError):
        qdbd_connection.options().set_max_cardinality(-143)
