:py:mod:`oioioi.problems.tests.test_tags` ========================================= .. py:module:: oioioi.problems.tests.test_tags Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsBase oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsEnglish oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsPolish oioioi.problems.tests.test_tags.TestAlgorithmTagLabel oioioi.problems.tests.test_tags.TestSaveProposals oioioi.problems.tests.test_tags.TestProblemSearchOrigin oioioi.problems.tests.test_tags.TestProblemSearchHintsTags .. py:class:: TestAlgorithmTagsProposalHintsBase(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase` Abstract base class with getting url utility for algorithm tags proposal tests. .. py:attribute:: fixtures :annotation: = ['test_users', 'test_contest', 'test_problem_packages', 'test_problem_site', 'test_algorithm_tags'] .. py:attribute:: view_name :annotation: = get_algorithm_tag_proposal_hints .. py:method:: get_query_url(parameters) .. py:class:: TestAlgorithmTagsProposalHintsEnglish(methodName='runTest') Bases: :py:obj:`TestAlgorithmTagsProposalHintsBase` Abstract base class with getting url utility for algorithm tags proposal tests. .. py:method:: test_tag_proposal_hints_view() .. py:class:: TestAlgorithmTagsProposalHintsPolish(methodName='runTest') Bases: :py:obj:`TestAlgorithmTagsProposalHintsBase` Abstract base class with getting url utility for algorithm tags proposal tests. .. py:method:: test_tag_proposal_hints_view() .. py:class:: TestAlgorithmTagLabel(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_algorithm_tags'] .. py:attribute:: view_name :annotation: = get_algorithm_tag_label .. py:method:: get_tag_labels(parameters) .. py:method:: test_algorithm_tag_label_view() .. py:class:: TestSaveProposals(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_problem_search', 'test_algorithm_tags', 'test_difficulty_tags'] .. py:attribute:: url .. py:method:: test_save_proposals_view() .. py:class:: TestProblemSearchOrigin(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase`, :py:obj:`oioioi.problems.tests.utilities.AssertContainsOnlyMixin` 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_problem_search_origin'] .. py:attribute:: url .. py:method:: test_search_origintag() .. py:method:: test_search_origininfovalue() .. py:method:: test_search_origininfovalue_invalid() .. py:method:: test_search_origininfovalue_multiple() .. py:class:: TestProblemSearchHintsTags(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase`, :py:obj:`oioioi.problems.tests.utilities.AssertContainsOnlyMixin` 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_origin_tags', 'test_algorithm_tags', 'test_difficulty_tags'] .. py:attribute:: url .. py:attribute:: category_url .. py:attribute:: selected_origintag_url .. py:method:: get_query_url(parameters) .. py:method:: test_search_hints_tags_basic() .. py:method:: test_search_hints_origininfo() .. py:method:: test_category_hints() .. py:method:: test_selected_origintag_hints_en() .. py:method:: test_selected_origintag_hints_pl()