class documentation

class JSONLegacyStringCastIndexTest(_LiteralRoundTripFixture, fixtures.TablesTest):

View In Hierarchy

test JSON index access with "cast to string", which we have documented for a long time as how to compare JSON values, but is ultimately not reliable in all cases. The "as_XYZ()" comparators should be used instead.
Class Method define​_tables Undocumented
Method ​_criteria​_fixture Undocumented
Method ​_test​_index​_criteria Undocumented
Method test​_string​_cast​_crit​_against​_string​_basic Undocumented
Method test​_string​_cast​_crit​_mixed​_path Undocumented
Method test​_string​_cast​_crit​_simple​_int Undocumented
Method test​_string​_cast​_crit​_spaces​_in​_key Undocumented
Method test​_string​_cast​_crit​_string​_path Undocumented
Class Variable __backend__ Undocumented
Class Variable __requires__ Undocumented
Class Variable data1 Undocumented
Class Variable data2 Undocumented
Class Variable data3 Undocumented
Class Variable data4 Undocumented
Class Variable data5 Undocumented
Class Variable data6 Undocumented

Inherited from _LiteralRoundTripFixture:

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

Inherited from TablesTest:

Class Method dispose​_bind Undocumented
Class Method fixtures Undocumented
Class Method insert​_data Undocumented
Class Method setup​_bind Undocumented
Class Method ​_init​_class Undocumented
Class Method ​_load​_fixtures Insert rows as represented by the fixtures() method.
Class Method ​_setup​_once​_inserts Undocumented
Class Method ​_setup​_once​_tables Undocumented
Class Method ​_teardown​_once​_metadata​_bind Undocumented
Method ​_setup​_each​_inserts Undocumented
Method ​_setup​_each​_tables Undocumented
Method ​_setup​_tables​_test​_class Undocumented
Method ​_setup​_tables​_test​_instance Undocumented
Method ​_teardown​_each​_tables Undocumented
Method sql​_count​_ Undocumented
Method sql​_eq​_ Undocumented
Class Variable ​_tables​_metadata Undocumented
Class Variable bind Undocumented
Class Variable other Undocumented
Class Variable run​_create​_tables Undocumented
Class Variable run​_define​_tables Undocumented
Class Variable run​_deletes Undocumented
Class Variable run​_dispose​_bind Undocumented
Class Variable run​_inserts Undocumented
Class Variable run​_setup​_bind Undocumented
Class Variable sequences Undocumented
Class Variable tables Undocumented
Property tables​_test​_metadata Undocumented

Inherited from TestBase (via TablesTest):

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 __skip​_if__ Undocumented
Class Variable __unsupported​_on__ Undocumented
@classmethod
def define_tables(cls, metadata):
def _criteria_fixture(self):

Undocumented

def _test_index_criteria(self, crit, expected, test_literal=True):

Undocumented

def test_string_cast_crit_against_string_basic(self):

Undocumented

def test_string_cast_crit_mixed_path(self):

Undocumented

@config.requirements.json_array_indexes
def test_string_cast_crit_simple_int(self):

Undocumented

def test_string_cast_crit_spaces_in_key(self):

Undocumented

def test_string_cast_crit_string_path(self):

Undocumented

__backend__: bool =

Undocumented

__requires__: tuple[str, ...] =
data1: dict[str, str] =

Undocumented

data2: dict[str, str] =

Undocumented

data3: dict =

Undocumented

data4: list[str] =

Undocumented

data5: dict[str, dict] =

Undocumented

data6: dict =

Undocumented