oioioi.problems.tests.test_tags

Module Contents

Classes

TestAlgorithmTagsProposalHintsBase

Abstract base class with getting url utility for algorithm tags proposal tests.

TestAlgorithmTagsProposalHintsEnglish

Abstract base class with getting url utility for algorithm tags proposal tests.

TestAlgorithmTagsProposalHintsPolish

Abstract base class with getting url utility for algorithm tags proposal tests.

TestAlgorithmTagLabel

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

TestSaveProposals

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

TestProblemSearchOrigin

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

TestProblemSearchHintsTags

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

class oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsBase(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Abstract base class with getting url utility for algorithm tags proposal tests.

fixtures = ['test_users', 'test_contest', 'test_problem_packages', 'test_problem_site', 'test_algorithm_tags'][source]
view_name = get_algorithm_tag_proposal_hints[source]
get_query_url(parameters)[source]
class oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsEnglish(methodName='runTest')[source]

Bases: TestAlgorithmTagsProposalHintsBase

Abstract base class with getting url utility for algorithm tags proposal tests.

test_tag_proposal_hints_view()[source]
class oioioi.problems.tests.test_tags.TestAlgorithmTagsProposalHintsPolish(methodName='runTest')[source]

Bases: TestAlgorithmTagsProposalHintsBase

Abstract base class with getting url utility for algorithm tags proposal tests.

test_tag_proposal_hints_view()[source]
class oioioi.problems.tests.test_tags.TestAlgorithmTagLabel(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_algorithm_tags'][source]
view_name = get_algorithm_tag_label[source]
get_tag_labels(parameters)[source]
test_algorithm_tag_label_view()[source]
class oioioi.problems.tests.test_tags.TestSaveProposals(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_problem_search', 'test_algorithm_tags', 'test_difficulty_tags'][source]
url[source]
test_save_proposals_view()[source]
class oioioi.problems.tests.test_tags.TestProblemSearchOrigin(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase, 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.

fixtures = ['test_problem_search_origin'][source]
url[source]
test_search_origintag()[source]
test_search_origininfovalue()[source]
test_search_origininfovalue_invalid()[source]
test_search_origininfovalue_multiple()[source]
class oioioi.problems.tests.test_tags.TestProblemSearchHintsTags(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase, 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.

fixtures = ['test_origin_tags', 'test_algorithm_tags', 'test_difficulty_tags'][source]
url[source]
category_url[source]
selected_origintag_url[source]
get_query_url(parameters)[source]
test_search_hints_tags_basic()[source]
test_search_hints_origininfo()[source]
test_category_hints()[source]
test_selected_origintag_hints_en()[source]
test_selected_origintag_hints_pl()[source]