:orphan: :py:mod:`oioioi.statistics.tests` ================================= .. py:module:: oioioi.statistics.tests Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.statistics.tests.TestStatisticsPlotFunctions oioioi.statistics.tests.TestHighchartsOptions oioioi.statistics.tests.TestStatisticsViews .. py:class:: TestStatisticsPlotFunctions(methodName='runTest') Bases: :py:obj:`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. .. py:attribute:: fixtures :annotation: = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance', 'test_submission',... .. py:method:: setUp() Hook method for setting up the test fixture before exercising it. .. py:method:: assertSizes(data, dims) Assert that ``data`` is a ``len(dims)``-dimensional rectangular matrix, represented as a list, with sizes in consecutive dimensions as specified in ``dims`` .. py:method:: test_histogram() .. py:method:: test_points_to_source_length() .. py:method:: test_test_scores() .. py:method:: test_submissions_by_round_ordering() .. py:class:: TestHighchartsOptions(methodName='runTest') Bases: :py:obj:`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. .. py:attribute:: fixtures :annotation: = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance', 'test_submission',... .. py:method:: setUp() Hook method for setting up the test fixture before exercising it. .. py:method:: test_scatter() .. py:method:: test_results_histogram() .. py:method:: test_submission_histogram() .. py:class:: TestStatisticsViews(methodName='runTest') Bases: :py:obj:`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. .. py:attribute:: fixtures :annotation: = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance', 'test_submission',... .. py:method:: test_statistics_view()