apis_core.history.tests package

Submodules

apis_core.history.tests.test_simple_history module

class apis_core.history.tests.test_simple_history.SimpleHistoryTestCase(methodName='runTest')[source]

Bases: TestCase

Test of the simple_history package using the demo project

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]

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

test_history()[source]

Tests the simple version of attributes changed on a models instance.

test_history_date()[source]

Test that history is set correctly when not manually set.

test_history_delete_entry()[source]

Tests the deletion of an entry.

test_history_merge()[source]

Tests the merge function of the Place model. This is still expected to fail.

test_history_tag()[source]

Tests the version tag function.

test_history_through_triples()[source]

Tests the newly introduced function for retrieving triples for a specific version of a model instance.

test_m2m_save()[source]

Test if m2m profession is saved correctly.