oioioi.usergroups.tests

Module Contents

Classes

TestAdmin

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestTeachersViews

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestSharing

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestContestRegistrationWithUsergroups

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestUserGroupRankings

Similar to TransactionTestCase, but use transaction.atomic() to achieve

RemoveUserGroupRankingsTest

Similar to TransactionTestCase, but use transaction.atomic() to achieve

class oioioi.usergroups.tests.TestAdmin(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'teachers', 'test_action_configs', 'test_usergroups'][source]
test_visibility()[source]
test_permissions()[source]
test_usergroup_validation()[source]
class oioioi.usergroups.tests.TestTeachersViews(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'teachers', 'test_action_configs', 'test_usergroups'][source]
test_visibility()[source]
test_permissions()[source]
test_addition()[source]
test_deletion()[source]
test_delete_members()[source]
test_joining_group()[source]
class oioioi.usergroups.tests.TestSharing(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'teachers', 'test_action_configs', 'test_usergroups'][source]
test_visibility()[source]
test_deleting_owners()[source]
test_becoming_owner()[source]
class oioioi.usergroups.tests.TestContestRegistrationWithUsergroups(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'teachers', 'test_action_configs', 'test_usergroups', 'test_contest'][source]
_assertGroupAttached(contest, group)[source]
_assertGroupNotAttached(contest, group)[source]
test_attaching_usergroup()[source]
test_registration_controller_mixin()[source]
test_creating_group_from_contest()[source]
test_detaching_usergroup()[source]
test_pupils_site()[source]
class oioioi.usergroups.tests.TestUserGroupRankings(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance', 'test_submission',...[source]
test_ranking_view()[source]
class oioioi.usergroups.tests.RemoveUserGroupRankingsTest(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance', 'test_submission',...[source]
test_command()[source]