bug_hub.tests.forms package

bug_hub.tests.forms Submodules

bug_hub.tests.forms.test_form_bugcreation module

This module contains unit tests for validating the form used for creating new bug reports in the Bug Hub application.

class bug_hub.tests.forms.test_form_bugcreation.BugCreationFormTestCase(methodName='runTest')[source]

Bases: TestCase

Test case for the BugCreationForm.

setUp()[source]

Create the details of a sample bug instance

test_blank_data()[source]

Test the form’s behavior with blank data.

test_clean_title_duplicate()[source]

Test the clean_title() method of the BugCreationForm class when a duplicate title is provided.

test_valid_form_data()[source]

Test the form’s validation with valid data.

test_valid_form_redirection()[source]

Test the redirection after a successful form submission.