Groups Application

This package defines the Group application. This app defines generic Group and License information for a particular installation of MouseDB. Because every page on this site identifies both the Group and data restrictions, at a minimum, group information must be provided upon installation (see installation instructions).

Groups Data Models

class mousedb.groups.models.Group(*args, **kwargs)

This defines the data structure for the Group model.

The only required field is group. All other fields (group_slug, group_url, license, contact_title, contact_first, contact_last and contact_email) are optional.

class mousedb.groups.models.License(*args, **kwargs)

This defines the data structure for the License model.

The only required field is license. If the contents of this installation are being made available using some licencing criteria this can either be defined in the notes field, or in an external website.

Groups App Views and URLs

Views

Administrative Interface

class mousedb.groups.admin.GroupAdmin(model, admin_site)

Defines the admin interface for Groups.

Currently set as default.

class mousedb.groups.admin.LicenseAdmin(model, admin_site)

Defines the admin interface for Licences.

Currently set as default.

class mousedb.groups.admin.LogEntryAdmin(model, admin_site)

Defines the admin interface for the LogEntry objects.

Groups App Unit Tests

This file contains tests for the groups application.

These tests will verify generation of a new group and license object.

class mousedb.groups.tests.GroupsModelTests(methodName='runTest')

Test the models contained in the ‘groups’ app.

setUp()

Instantiate the test client.

tearDown()

Depopulate created model instances from test database.

test_create_group_all_fields()

This is a test for creating a new group object, with all fields being entered, except license.

test_create_group_minimal()

This is a test for creating a new group object, with only the minimum being entered.

test_create_license_all_fields()

This is a test for creating a new license object, with all fields being entered.

test_create_license_minimal()

This is a test for creating a new license object, with only the minimum being entered.

Table Of Contents

Previous topic

Data Application

Next topic

Timed Mating Application

This Page