tests.dal package

Submodules

tests.dal.test_explain_query_plan module

test class

class tests.dal.test_explain_query_plan.ExplainQueryPlanTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the SQLite Query execution test

setUp()[source]
testIsReadOnlyIfFalseBecauseOfAlter()[source]

test IsReadOnly if it is False because it is a alter query

testIsReadOnlyIfFalseBecauseOfDrop()[source]

test IsReadOnly if it is False because it is a drop query

testIsReadOnlyIfFalseBecauseOfError()[source]

test IsReadOnly with erroneous SQL query

testIsReadOnlyIfFalseBecauseOfWarning()[source]

test IsReadOnly with erroneous SQL query

testIsReadOnlyIfTrue()[source]

test IsReadOnly if it is True

tests.dal.test_sqlite_database_information module

test class

class tests.dal.test_sqlite_database_information.SQLiteDatabaseInformationTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the SQLite Query execution test

testGetRequiredTables()[source]

get the required tables if nothing went wrong

testGetRequiredTablesWithError()[source]

get the required tables if anything went wrong

testGetTableColumnsAndType()[source]

get columns for the table nodata with every possible type.

testGetTableColumnsAndTypeWithError()[source]

get the columns for the table if anything went wrong

testGetTableColumnsAndTypeWithNoTables()[source]

get the columns for the table if the table can not be found.

tests.dal.test_sqlite_query_execution module

test class

class tests.dal.test_sqlite_query_execution.SQLiteQueryExecutionTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the SQLite Query execution test

setUp()[source]
testExecuteQueryDetailedJoinNoData()[source]

test the execution of a join Query with no data

testExecuteQueryDetailedJoinNoDataNoSpace()[source]

test the execution of a join Query with no data

testExecuteQueryDetailedSimple()[source]

test the execution of a simple Query

testExecuteQueryDetailedSimpleNoData()[source]

test the execution of a simple Query

testExecuteQueryDetailedWithAliasForTable()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithAliasWithUnderscore()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithAliasWithUnderscore2()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithAliasWithUnderscore3()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithJoin()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithJoinAndAliasForTable()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithJoinAndAliasWithUnderscore()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithJoinAndNoTable()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithOneDuplicateColumnNames()[source]

test the execution of a simple Query with one duplicate column name

testExecuteQueryDetailedWithSpecialCharacters()[source]

test the execution of a more complex Query

testExecuteQueryDetailedWithTwoDuplicateColumnNames()[source]

test the execution of a simple Query with two duplicate column names

testExecuteQueryReadOnlyWithAliasForMultipleTable()[source]

test the execution of a more complex Query

testExecuteQuerySimple()[source]

test the execution of a simple Query

testExecuteReadOnlyQueryWithErrorBecauseOfAlter()[source]

test execute read only with a alter rename query

testExecuteReadOnlyQueryWithErrorBecauseOfDrop()[source]

test execute read only with a drop query

testExecuteReadOnlyQueryWithSelect()[source]

test execute read only with a simple select query

testExecuteReadOnlyQueryWithWarning()[source]

test execute read only with two queries at the same time

testMultipleTestAfterOneAnother()[source]

test two querys after another to test the connection is still open

testQueryErrorNoSuchColumn()[source]

test two querys after another to test the connection is still open

testQueryErrorNoSuchTable()[source]

test two querys after another to test the connection is still open

testQueryWarning()[source]

test two querys after another to test the connection is still open

testRollbackWorks()[source]

testing if the rollback works

testTryToConnect()[source]

try to connect without error

testTryToConnectWithError()[source]

try to connect 2 times resulting in a error

tests.dal.test_sqlite_type_helper module

test class

class tests.dal.test_sqlite_type_helper.SQLiteQueryExecutionTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the SQLite Query execution test

setUp()[source]
testAddMissingTypesFromSchemaForMultipleOneTable()[source]

test getting missing types from schema multiple tables

testAddMissingTypesFromSchemaForOnlyOneTable()[source]

test getting missing types from schema if only one table

testColumnTypeForMultipleTables()[source]

test getting the column type for multiple table

testColumnTypeForOnlyOneTable()[source]

test getting the column type for only one table

testGetColumnDescriptionEmpty()[source]

test getting column description if description is empty.

testGetColumnDescriptionNone()[source]

test getting column description if description is none.

testGetColumnDescriptionWithElements()[source]

test getting column description if description is not empty.

testGetDuplicateColumnNamesIfDistinct()[source]

test a distinct list

testGetDuplicateColumnNamesIfMultipleDuplicates()[source]

test a duplicate list with multiple duplicates

testGetDuplicateColumnNamesIfOneDuplicate()[source]

test a duplicate list with one duplicate

testGetEndOfTableIfNotAliasEasy()[source]

test get the end of a table with easy query

testGetEndOfTableIfNotAliasWithAliasAfterWithComma()[source]

test get the end of a table with alias after

testGetEndOfTableIfNotAliasWithAliasAfterWithSpace()[source]

test get the end of a table with alias after

testGetEndOfTableIfNotAliasWithAliasBefore()[source]

test get the end of a table with alias before

testGetEndOfTableIfNotAliasWithMultipleAliasBefore()[source]

test get the end of a table with alias before

testGetEndOfTableIfNotAliasWithOnlyAlias()[source]

test get the end of a table with only an alias

testGetPositionAfterSeparatorComma()[source]

test getting position after comma

testGetPositionAfterSeparatorCommaAndMultipleSpaceBeforeAndAfter()[source]

test getting position after comma and multiple space before and after comma

testGetPositionAfterSeparatorCommaAndSpace()[source]

test getting position after comma and space.

testGetPositionAfterSeparatorCommaAndSpaceAfter()[source]

test getting position after comma and space afterwards

testGetPositionAfterSeparatorCommaAndSpaceBeforeAndAfter()[source]

test getting position after comma and space before and after comma

testGetPositionAfterSeparatorSpace()[source]

test getting position after space

Module contents