:orphan: :py:mod:`oioioi.plagiarism.tests` ================================= .. py:module:: oioioi.plagiarism.tests Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.plagiarism.tests.TestMossClient oioioi.plagiarism.tests.TestMossSubmitCommand oioioi.plagiarism.tests.TestMossSubmitView Attributes ~~~~~~~~~~ .. autoapisummary:: oioioi.plagiarism.tests.SAMPLE_RESULTS_URL oioioi.plagiarism.tests.ALWAYS_OK_SUBMIT .. py:data:: SAMPLE_RESULTS_URL :annotation: = http://moss.stanford.edu/results/10/123456789 .. py:data:: ALWAYS_OK_SUBMIT .. py:class:: TestMossClient(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:method:: test_connection_refused() .. py:method:: test_moss_query_rejection() .. py:class:: TestMossSubmitCommand(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_export() .. py:method:: test_no_submissions() .. py:method:: test_adding_files() .. py:class:: TestMossSubmitView(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:attribute:: MOSS_SUBMIT_URL :annotation: = /c/c/moss_submit/ .. py:method:: test_admin_menu_link() .. py:method:: test_submit()