oioioi.evalmgr.tests.tests
¶
Module Contents¶
Classes¶
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
|
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
|
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
|
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
|
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
|
Contains the contest logic and rules. |
|
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes¶
- oioioi.evalmgr.tests.tests.hunting = [['Prepare guns', 'oioioi.evalmgr.tests.tests.prepare_handler'], None, ['Rest',...[source]¶
- exception oioioi.evalmgr.tests.tests.HuntingException[source]¶
Bases:
Exception
Common base class for all non-exit exceptions.
- class oioioi.evalmgr.tests.tests.TestLocalJobs(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.
- class oioioi.evalmgr.tests.tests.TestRemoteJobs(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.
- exception oioioi.evalmgr.tests.tests.SuspectNotFoundException[source]¶
Bases:
Exception
Common base class for all non-exit exceptions.
- class oioioi.evalmgr.tests.tests.TestErrorBehavior(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.
- class oioioi.evalmgr.tests.tests.TestAsyncJobs(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.
- class oioioi.evalmgr.tests.tests.TestViews(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]¶
- assertStateCountEqual(state_str, count, show_response=None)[source]¶
Asserts that the number of the submits with given state (
state_str
) that appear on the admin site iscount
.
- class oioioi.evalmgr.tests.tests.AddHandlersController(contest)[source]¶
Bases:
oioioi.programs.controllers.ProgrammingContestController
Contains the contest logic and rules.
This is the computerized implementation of the contest’s official rules.
- class oioioi.evalmgr.tests.tests.TestEval(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.