oioioi.statistics.tests

Module Contents

Classes

TestStatisticsPlotFunctions

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

TestHighchartsOptions

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

TestStatisticsViews

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

class oioioi.statistics.tests.TestStatisticsPlotFunctions(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]
setUp()[source]

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

assertSizes(data, dims)[source]

Assert that data is a len(dims)-dimensional rectangular matrix, represented as a list, with sizes in consecutive dimensions as specified in dims

test_histogram()[source]
test_points_to_source_length()[source]
test_test_scores()[source]
test_submissions_by_round_ordering()[source]
class oioioi.statistics.tests.TestHighchartsOptions(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]
setUp()[source]

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

test_scatter()[source]
test_results_histogram()[source]
test_submission_histogram()[source]
class oioioi.statistics.tests.TestStatisticsViews(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_statistics_view()[source]