oioioi.exportszu.tests

Module Contents

Classes

TestSubmissionsWithUserDataCollector

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

TestFinalSubmissionsWithUserDataCollector

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

TestExportCommand

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

TestExportSubmissionsView

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

Attributes

class oioioi.exportszu.tests.TestSubmissionsWithUserDataCollector(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]
assert_correct_submission_data(submission_data_list)[source]
test_default()[source]
test_not_only_final()[source]
test_specific_round()[source]
class oioioi.exportszu.tests.TestFinalSubmissionsWithUserDataCollector(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_default()[source]
test_not_only_final()[source]
oioioi.exportszu.tests.INDEX_HEADER = submission_id,user_id,username,first_name,last_name,city,school,school_city,problem_short_name,score[source]
class oioioi.exportszu.tests.TestExportCommand(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_export()[source]
class oioioi.exportszu.tests.TestExportSubmissionsView(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_download()[source]