Unit tests

Check the test coverage.

class tests.common_tests.Generic[source]

Generic class for unit testing pydblite.pydblite and pydblite.sqlite

make_group_count_result(key, test_key=None, test_val=None)[source]
reset_status_values_for_filter()[source]
setup_db_for_filter()[source]
test_add_field()[source]
test_add_field_with_default_value()[source]
test_create_index()[source]
test_del()[source]
test_delete()[source]
test_delete_index()[source]
test_fetch()[source]
test_filter_and()[source]

Test AND

test_filter_equals()[source]
test_filter_get_unique_ids()[source]
test_filter_get_unique_ids_with_filter()[source]
test_filter_get_unique_ids_with_filter_non_matching()[source]
test_filter_greater()[source]
test_filter_greater_equals()[source]
test_filter_ilike()[source]

Test text case sensitive

test_filter_in()[source]

Test IN ( == with a list

test_filter_len()[source]
test_filter_less()[source]
test_filter_less_equals()[source]
test_filter_like()[source]

Test text case insensitive

test_filter_not_equals()[source]
test_filter_or()[source]

Test OR

test_get_group_count()[source]
test_get_group_count_with_filter()[source]
test_get_group_count_with_filter_non_matching()[source]
test_insert()[source]
test_insert_values_in_order()[source]
test_iter()[source]
test_len_with_filter()[source]
test_len_with_filter_non_matching()[source]
test_select()[source]
test_select_unicode()[source]
test_update()[source]
class tests.test_pydblite.PyDbLiteTestCase(methodName='runTest')[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]
setup_db_for_filter()[source]
tearDown()[source]
test_insert_list()[source]
test_open()[source]
test_open_existing()[source]
test_open_file_with_existing_dir()[source]
test_open_memory()[source]
test_open_memory_with_existing_filename()[source]
test_sqlite_compat()[source]
test_sqlite_compat_insert_list()[source]
class tests.test_pydblite_sqlite.SQLiteTestCase(methodName='runTest')[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]
tearDown()[source]
test_open_existing()[source]
test_with_statment()[source]
class tests.test_pydblite_sqlite.TestSQLiteFunctions(methodName='runTest')[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

insert_test_data()[source]
setUp()[source]
test_00_create()[source]
test_02_iterate_on_database()[source]
test_10_insert_one()[source]
test_11_insert_many()[source]
test_12_insert_kw_unicode_missing()[source]
test_20_select()[source]
test_40_delete()[source]