class documentation

class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase):

View In Hierarchy

Undocumented

Method do​_numeric​_test Undocumented
Method test​_decimal​_coerce​_round​_trip Undocumented
Method test​_decimal​_coerce​_round​_trip​_w​_cast Undocumented
Method test​_enotation​_decimal test exceedingly small decimals.
Method test​_enotation​_decimal​_large test exceedingly large decimals.
Method test​_float​_as​_decimal Undocumented
Method test​_float​_as​_float Undocumented
Method test​_float​_coerce​_round​_trip Undocumented
Method test​_float​_custom​_scale Undocumented
Method test​_infinity​_floats test for #977, #7283
Method test​_many​_significant​_digits Undocumented
Method test​_numeric​_as​_decimal Undocumented
Method test​_numeric​_as​_float Undocumented
Method test​_numeric​_no​_decimal Undocumented
Method test​_numeric​_null​_as​_decimal Undocumented
Method test​_numeric​_null​_as​_float Undocumented
Method test​_precision​_decimal Undocumented
Method test​_render​_literal​_float Undocumented
Method test​_render​_literal​_numeric Undocumented
Method test​_render​_literal​_numeric​_asfloat Undocumented
Class Variable __backend__ Undocumented

Inherited from _LiteralRoundTripFixture:

Method literal​_round​_trip test literal rendering
Class Variable supports​_whereclause Undocumented

Inherited from TestBase:

Method assert​_ Undocumented
Method async​_testing​_engine Undocumented
Method connection Undocumented
Method connection​_no​_trans Undocumented
Method future​_connection Undocumented
Method future​_engine Undocumented
Method metadata Provide bound MetaData for a single test, dropping afterwards.
Method registry Undocumented
Method testing​_engine Undocumented
Method trans​_ctx​_manager​_fixture Undocumented
Class Variable __leave​_connections​_for​_teardown__ Undocumented
Class Variable __only​_on__ Undocumented
Class Variable __requires__ Undocumented
Class Variable __skip​_if__ Undocumented
Class Variable __unsupported​_on__ Undocumented
@testing.fixture
def do_numeric_test(self, metadata, connection):

Undocumented

@testing.requires.implicit_decimal_binds
@testing.emits_warning('.*does \\*not\\* support Decimal objects natively')
def test_decimal_coerce_round_trip(self, connection):

Undocumented

@testing.emits_warning('.*does \\*not\\* support Decimal objects natively')
def test_decimal_coerce_round_trip_w_cast(self, connection):

Undocumented

@testing.requires.precision_numerics_enotation_large
def test_enotation_decimal(self, do_numeric_test):

test exceedingly small decimals.

Decimal reports values with E notation when the exponent is greater than 6.

@testing.requires.precision_numerics_enotation_large
def test_enotation_decimal_large(self, do_numeric_test):
test exceedingly large decimals.
@testing.requires.floats_to_four_decimals
def test_float_as_decimal(self, do_numeric_test):

Undocumented

def test_float_as_float(self, do_numeric_test):

Undocumented

def test_float_coerce_round_trip(self, connection):

Undocumented

@testing.requires.precision_generic_float_type
def test_float_custom_scale(self, do_numeric_test):

Undocumented

@testing.requires.infinity_floats
def test_infinity_floats(self, do_numeric_test):
test for #977, #7283
@testing.requires.precision_numerics_many_significant_digits
def test_many_significant_digits(self, do_numeric_test):

Undocumented

def test_numeric_as_decimal(self, do_numeric_test):

Undocumented

def test_numeric_as_float(self, do_numeric_test):

Undocumented

@testing.requires.precision_numerics_retains_significant_digits
def test_numeric_no_decimal(self, do_numeric_test):

Undocumented

@testing.requires.fetch_null_from_numeric
def test_numeric_null_as_decimal(self, do_numeric_test):

Undocumented

@testing.requires.fetch_null_from_numeric
def test_numeric_null_as_float(self, do_numeric_test):

Undocumented

@testing.requires.precision_numerics_general
def test_precision_decimal(self, do_numeric_test):

Undocumented

def test_render_literal_float(self, literal_round_trip):

Undocumented

@testing.emits_warning('.*does \\*not\\* support Decimal objects natively')
def test_render_literal_numeric(self, literal_round_trip):

Undocumented

@testing.emits_warning('.*does \\*not\\* support Decimal objects natively')
def test_render_literal_numeric_asfloat(self, literal_round_trip):

Undocumented

__backend__: bool =

Undocumented