oioioi.pa.tests

Module Contents

Classes

TestPAScore

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

TestPARoundTimes

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

TestPARanking

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

TestPARegistration

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

TestPAScorer

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

TestPAResults

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

TestPADivisions

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

TestPAContestInfo

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

TestPASafeExecModes

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

TestPAAdmin

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

class oioioi.pa.tests.TestPAScore(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.

test_score_distribution()[source]
test_pa_score()[source]
class oioioi.pa.tests.TestPARoundTimes(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_pa_contest'][source]
test_round_states()[source]
class oioioi.pa.tests.TestPARanking(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_pa_contest'][source]
_ranking_url(key)[source]
test_divisions()[source]
test_no_zero_scores_in_ranking()[source]
test_ranking_ordering()[source]
class oioioi.pa.tests.TestPARegistration(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_terms_accepted_phrase'][source]
setUp()[source]

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

test_default_terms_accepted_phrase()[source]
test_participants_registration()[source]
test_contest_info()[source]
class oioioi.pa.tests.TestPAScorer(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.

t_results_ok = [None, None, None][source]
t_expected_ok = [None, None, None][source]
t_results_wrong = [None, None][source]
t_expected_wrong = [None, None][source]
test_pa_test_scorer()[source]
class oioioi.pa.tests.TestPAResults(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_pa_contest'][source]
test_pa_user_results()[source]
class oioioi.pa.tests.TestPADivisions(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'][source]
test_prolem_upload()[source]
class oioioi.pa.tests.TestPAContestInfo(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_pa_contest'][source]
test_contest_info_anonymous()[source]
test_cross_origin()[source]
class oioioi.pa.tests.TestPASafeExecModes(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_pa_contests_safe_exec_mode'][source]
test_pa_quals_controller_safe_exec_mode()[source]
test_pa_finals_controller_safe_exec_mode()[source]
class oioioi.pa.tests.TestPAAdmin(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_pa_registration', 'test_permissions'][source]
setUp()[source]

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

test_terms_accepted_phrase_inline_admin_permissions()[source]
test_terms_accepted_phrase_inline_edit_restrictions()[source]