oioioi.teams.tests

Module Contents

Classes

TestTeamsViews

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

TestTeamSubmit

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

TestTeamsListView

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

TestTeamMembership

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

class oioioi.teams.tests.TestTeamsViews(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase, oioioi.programs.tests.SubmitFileMixin

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'][source]
test_permissions()[source]
test_views()[source]
class oioioi.teams.tests.TestTeamSubmit(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase, oioioi.programs.tests.SubmitFileMixin

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'][source]
test_submit_file_without_team()[source]
test_submit_file_with_team()[source]
test_submit_file_with_team_deleted()[source]
class oioioi.teams.tests.TestTeamsListView(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_team'][source]
test_visibility_no()[source]
test_visibility_yes()[source]
test_visibility_public()[source]
test_list()[source]
class oioioi.teams.tests.TestTeamMembership(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_team'][source]
test_max_one_team_per_user()[source]