module unit.canvas.data.memorydb.db

class unit.canvas.data.memorydb.db.describe_memory_db[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

testInitialState()[source]
testLoadSaveViewProperties()[source]
testSaveInvalidDisplayedPeriod()[source]
testGetSetDisplayedPeriod()[source]
testGetSetHiddenCategories()[source]
testSaveNewCategory()[source]
testSaveExistingCategory()[source]
testSaveNonExistingCategory()[source]
testSaveCategoryWithUnknownParent()[source]
testSaveCategoryWithParentChange()[source]
testDeleteExistingCategory()[source]
testDeleteNonExistingCategory()[source]
testDeleteCategoryWithParent()[source]
testDeleteCategoryWithEvent()[source]
testSaveEventUnknownCategory()[source]
testSaveNewEvent()[source]
testSaveExistingEvent()[source]
testSaveNonExistingEvent()[source]
testDeleteExistingEvent()[source]
testDeleteNonExistingEvent()[source]
testEventShouldNotBeFuzzyByDefault()[source]
testEventShouldNotBeLockedByDefault()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_querying[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_can_get_first_event()[source]
test_can_get_last_event()[source]
test_can_get_subevents()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_searching[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_find_events_with_matching_text()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_undo[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_undo_enabled()[source]
test_redo_enabled()[source]
test_can_not_undo_non_modified_timeline()[source]
test_can_undo_added_event()[source]
test_can_redo_undo()[source]
assertHasEvents(event_texts)[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_importing[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_importing_empty_db_does_nothing()[source]
test_events_are_imported()[source]
test_subevents_are_imported()[source]
test_events_are_imported_into_existing_categories()[source]
test_new_categories_are_created_if_they_do_not_exist()[source]
test_new_categories_preserve_parent()[source]
test_new_categories_are_attached_to_existing_ones()[source]
test_categories_without_events_are_not_imported()[source]
test_save_is_only_called_once()[source]
test_fails_if_type_type_missmatch()[source]
assertCategoryTreeIs(expected_tree)[source]
assertEventListIs(expected_list)[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_moving_events[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_place_after()[source]
test_place_after_to_end()[source]
test_place_after_when_already_after()[source]
test_place_after_when_same()[source]
test_place_before()[source]
test_place_before_to_beginning()[source]
test_place_before_when_already_before()[source]
test_place_before_when_same()[source]
assertEventOrderIs(expected_events)[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_query[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_get_container()[source]
test_get_subevent()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.canvas.data.memorydb.db.describe_eras[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_save()[source]
test_delete()[source]
test_retains_ends_today()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

unit.canvas.data.memorydb.db.replace_category_with_name(tree)[source]