Skip to content

Model Test Cases


Base Unit Tests for all models

Abstract test class containing test cases for all models.

Test cases for all models

Attributes

model = None

Model to test

Functions

test_class_inherits_save_history()

Confirm class inheritence

TenancyObject must inherit SaveHistory

Tenancy model Unit Tests

Abstract test class containing test cases for Tenancy Object models

Bases: BaseModel, TenancyObject, Models

Test cases for tenancy models

Attributes

model = None

Model to test

Functions

test_class_inherits_save_history()

Confirm class inheritence

TenancyObject must inherit SaveHistory

test_field_exists_verbose_name_plural()

Test for existance of field in <model>.Meta

Field is required for templates/detail.html.js

Attribute verbose_name_plural must be defined in Meta class.

test_field_not_empty_verbose_name_plural()

Test field <model>.Meta is not empty

Field is required for templates/detail.html.js

Attribute verbose_name_plural must be defined in Meta class.

test_field_type_verbose_name_plural()

Test field <model>.Meta is not empty

Field is required for templates/detail.html.js

Attribute verbose_name_plural must be of type str.

About:

This page forms part of our Project Centurion ERP.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2024-07-15
Date Edited: 2024-07-15

Contribution:

Would You like to contribute to our Centurion ERP project? You can assist in the following ways:

 

ToDo: Add the page list of contributors