crate.client.sqlalchemy.tests package

Submodules

crate.client.sqlalchemy.tests.connection_test module

class crate.client.sqlalchemy.tests.connection_test.SqlAlchemyConnectionTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_connection_multiple_server()
test_connection_server()
test_default_connection()

crate.client.sqlalchemy.tests.datetime_test module

class crate.client.sqlalchemy.tests.datetime_test.SqlAlchemyDateAndDateTimeTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_data_cannot_handle_tz_aware_datetime(*args, **keywargs)
test_date_can_handle_datetime(*args, **keywargs)

date type should also be able to handle iso datetime strings.

this verifies that the fallback in the Date result_processor works.

crate.client.sqlalchemy.tests.dict_test module

class crate.client.sqlalchemy.tests.dict_test.SqlAlchemyDictTypeTest(methodName='runTest')

Bases: unittest.case.TestCase

assertSQL(expected_str, actual_expr)
setUp()
set_up_character_and_cursor(return_value=None)
set_up_character_and_cursor_data_list(return_value=None)
test_assign_to_craty_type_after_commit(*args, **keywargs)
test_change_tracking(*args, **keywargs)
test_object_array_append_change_tracking(*args, **keywargs)
test_object_array_extend_change_tracking(*args, **keywargs)
test_object_array_insert_change_tracking(*args, **keywargs)
test_object_array_pop_change_tracking(*args, **keywargs)
test_object_array_remove_change_tracking(*args, **keywargs)
test_object_array_setitem_change_tracking(*args, **keywargs)
test_object_array_slice_change_tracking(*args, **keywargs)
test_partial_dict_update(*args, **keywargs)
test_partial_dict_update_only_one_key_changed(*args, **keywargs)

if only one attribute of Craty is changed the update should only update that attribute not all attributes of Craty

test_partial_dict_update_with_delitem(*args, **keywargs)
test_partial_dict_update_with_delitem_setitem(*args, **keywargs)

test that the change tracking doesn’t get messed up

delitem -> setitem

test_partial_dict_update_with_regular_column(*args, **keywargs)
test_partial_dict_update_with_setitem_delitem(*args, **keywargs)

test that the change tracking doesn’t get messed up

setitem -> delitem

test_partial_dict_update_with_setitem_delitem_setitem(*args, **keywargs)

test that the change tracking doesn’t get messed up

setitem -> delitem -> setitem

test_select_with_dict_column()
test_select_with_dict_column_nested_where()
test_select_with_dict_column_where_clause()
test_select_with_dict_column_where_clause_gt()
test_select_with_dict_column_where_clause_other_col()
test_update_with_dict_column()

Module contents

crate.client.sqlalchemy.tests.test_suite()