fix(core): Dont attempt to use ticket instance organization if it's a… #657
6367 passed, 4 failed and 425 skipped
❌ unit.JUnit.xml
6796 tests were completed in 283s with 6367 passed, 4 failed and 425 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 6367✅ | 4❌ | 425⚪ | 283s |
❌ pytest
access.tests.unit.organization.test_organizaiton_api.OrganizationAPI
✅ test_api_field_exists_id
✅ test_api_field_exists_name
✅ test_api_field_exists_teams
✅ test_api_field_exists_teams_id
✅ test_api_field_exists_teams_permissions
✅ test_api_field_exists_teams_permissions_codename
✅ test_api_field_exists_teams_permissions_content_type
✅ test_api_field_exists_teams_permissions_content_type_app_label
✅ test_api_field_exists_teams_permissions_content_type_id
✅ test_api_field_exists_teams_permissions_content_type_model
✅ test_api_field_exists_teams_permissions_id
✅ test_api_field_exists_teams_permissions_name
✅ test_api_field_exists_teams_permissions_url
✅ test_api_field_exists_teams_team_name
✅ test_api_field_exists_teams_url
✅ test_api_field_exists_url
✅ test_api_field_type_id
✅ test_api_field_type_name
✅ test_api_field_type_teams
✅ test_api_field_type_teams_id
✅ test_api_field_type_teams_permissions
✅ test_api_field_type_teams_permissions_codename
✅ test_api_field_type_teams_permissions_content_type
✅ test_api_field_type_teams_permissions_content_type_app_label
✅ test_api_field_type_teams_permissions_content_type_id
✅ test_api_field_type_teams_permissions_content_type_model
✅ test_api_field_type_teams_permissions_id
✅ test_api_field_type_teams_permissions_name
✅ test_api_field_type_teams_permissions_url
✅ test_api_field_type_teams_team_name
✅ test_api_field_type_teams_url
✅ test_api_field_type_url
access.tests.unit.organization.test_organizaiton_api_v2.OrganizationAPI
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_manager
✅ test_api_field_exists_manager_display_name
✅ test_api_field_exists_manager_id
✅ test_api_field_exists_manager_url
✅ test_api_field_exists_name
✅ test_api_field_exists_url_teams
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_manager
✅ test_api_field_type_manager_display_name
✅ test_api_field_type_manager_id
✅ test_api_field_type_manager_url
✅ test_api_field_type_name
✅ test_api_field_type_url_teams
✅ test_api_field_type_urls
access.tests.unit.organization.test_organizaiton_permission.OrganizationPermissions
✅ test_model_change_different_organization_denied
✅ test_model_change_different_organization_is_organization_manager_denied
✅ test_model_change_has_no_permission_is_organization_manager
✅ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_view_different_organizaiton_denied
✅ test_model_view_different_organizaiton_is_organization_manager_denied
✅ test_model_view_has_no_permission_is_organization_manager
✅ test_model_view_has_permission
✅ test_model_view_no_permission_denied
✅ test_model_view_user_anon_denied
access.tests.unit.organization.test_organizaiton_permission_api.OrganizationPermissionsAPI
✅ test_add_is_prohibited_anon_user
✅ test_add_is_prohibited_diff_org_user
✅ test_add_is_prohibited_super_user
✅ test_add_is_prohibited_user_same_org
✅ test_change_different_organization_denied
✅ test_change_has_permission
✅ test_change_no_permission_denied
✅ test_change_permission_add_denied
✅ test_change_permission_view_denied
✅ test_change_user_anon_denied
✅ test_view_different_organizaiton_denied
✅ test_view_has_permission
✅ test_view_no_permission_denied
✅ test_view_user_anon_denied
access.tests.unit.organization.test_organization_core_history.OrganizationHistory
✅ test_device_history_entry_children_delete
✅ test_device_history_entry_delete
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
access.tests.unit.organization.test_organization_history_permission.OrganizationHistoryPermissions
✅ test_auth_view_history_different_organizaiton_denied
✅ test_auth_view_history_has_permission
✅ test_auth_view_history_no_permission_denied
✅ test_auth_view_history_user_anon_denied
access.tests.unit.organization.test_organization_views.OrganizationViews
✅ test_view_display_attribute_exists_model
✅ test_view_display_attribute_exists_permission_required
✅ test_view_display_attribute_exists_template_name
✅ test_view_display_attribute_type_permission_required
✅ test_view_display_attribute_type_template_name
✅ test_view_index_attribute_exists_model
✅ test_view_index_attribute_exists_permission_required
✅ test_view_index_attribute_exists_template_name
✅ test_view_index_attribute_type_permission_required
✅ test_view_index_attribute_type_template_name
access.tests.unit.team.test_team.TeamModel
✅ test_attribute_exists_ordering
✅ test_attribute_exists_page_layout
✅ test_attribute_exists_table_fields
⚪ test_attribute_is_type_objects
✅ test_attribute_not_callable_page_layout
✅ test_attribute_not_callable_table_fields
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
✅ test_attribute_type_page_layout
✅ test_attribute_type_table_fields
⚪ test_class_inherits_save_history
⚪ test_create_no_organization_fails
⚪ test_edit_no_organization_fails
✅ test_field_exists_verbose_name
✅ test_field_exists_verbose_name_plural
✅ test_field_not_empty_verbose_name
✅ test_field_not_empty_verbose_name_plural
✅ test_field_type_verbose_name
✅ test_field_type_verbose_name_plural
⚪ test_function_save_attributes
✅ test_has_attr_get_organization
✅ test_has_attr_is_global
✅ test_has_attr_model_notes
✅ test_has_attr_organization
✅ test_history_save
✅ test_model_class_tenancy_manager_function_get_queryset
⚪ test_model_class_tenancy_manager_function_get_queryset_called
⚪ test_model_class_tenancy_manager_results_get_queryset
⚪ test_model_class_tenancy_manager_results_get_queryset_super_user
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
✅ test_model_has_property_parent_object
✅ test_model_property_parent_object_returns_object
access.tests.unit.team.test_team_api.TeamAPI
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_permissions
✅ test_api_field_exists_permissions_codename
✅ test_api_field_exists_permissions_content_type
✅ test_api_field_exists_permissions_content_type_app_label
✅ test_api_field_exists_permissions_content_type_id
✅ test_api_field_exists_permissions_content_type_model
✅ test_api_field_exists_permissions_id
✅ test_api_field_exists_permissions_name
✅ test_api_field_exists_team_name
✅ test_api_field_exists_url
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_name
✅ test_api_field_type_permissions
✅ test_api_field_type_permissions_codename
✅ test_api_field_type_permissions_content_type
✅ test_api_field_type_permissions_content_type_app_label
✅ test_api_field_type_permissions_content_type_id
✅ test_api_field_type_permissions_content_type_model
✅ test_api_field_type_permissions_id
✅ test_api_field_type_permissions_name
✅ test_api_field_type_url
access.tests.unit.team.test_team_api_v2.TeamAPI
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_permissions
✅ test_api_field_exists_permissions_display_name
✅ test_api_field_exists_permissions_id
✅ test_api_field_exists_permissions_url
✅ test_api_field_exists_team_name
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_permissions
✅ test_api_field_type_permissions_display_name
✅ test_api_field_type_permissions_id
✅ test_api_field_type_permissions_url
✅ test_api_field_type_team_name
✅ test_api_field_type_urls
access.tests.unit.team.test_team_core_history.TeamHistory
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
✅ test_history_entry_item_delete_children_entries_not_exist
✅ test_history_entry_item_delete_field_action
✅ test_history_entry_item_delete_field_after
⚪ test_history_entry_item_delete_field_before
✅ test_history_entry_item_delete_field_item_pk
✅ test_history_entry_item_delete_field_parent_class
✅ test_history_entry_item_delete_field_parent_pk
✅ test_history_entry_item_delete_item_class
access.tests.unit.team.test_team_history_permission.TeamHistoryPermissions
✅ test_auth_view_history_different_organizaiton_denied
✅ test_auth_view_history_has_permission
✅ test_auth_view_history_no_permission_denied
✅ test_auth_view_history_user_anon_denied
access.tests.unit.team.test_team_permission.TeamPermissions
✅ test_model_add_different_organization_denied
✅ test_model_add_different_organization_is_organization_manager_denied
✅ test_model_add_has_no_permission_is_organization_manager
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_change_different_organization_denied
✅ test_model_change_different_organization_is_organization_manager_denied
✅ test_model_change_has_no_permission_is_organization_manager
✅ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_different_organization_is_organization_manager_denied
✅ test_model_delete_has_no_permission_is_organization_manager
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
✅ test_model_view_different_organizaiton_denied
✅ test_model_view_different_organizaiton_is_organization_manager_denied
✅ test_model_view_has_no_permission_is_organization_manager
✅ test_model_view_has_permission
✅ test_model_view_no_permission_denied
✅ test_model_view_user_anon_denied
access.tests.unit.team.test_team_permission_api.TeamPermissionsAPI
✅ test_add_different_organization_denied
✅ test_add_has_permission
✅ test_add_no_permission_denied
✅ test_add_permission_view_denied
✅ test_add_user_anon_denied
✅ test_change_different_organization_denied
✅ test_change_has_permission
✅ test_change_no_permission_denied
✅ test_change_permission_add_denied
✅ test_change_permission_view_denied
✅ test_change_user_anon_denied
✅ test_delete_different_organization_denied
✅ test_delete_has_permission
✅ test_delete_no_permission_denied
✅ test_delete_permission_add_denied
✅ test_delete_permission_change_denied
✅ test_delete_permission_view_denied
✅ test_delete_user_anon_denied
✅ test_view_different_organizaiton_denied
✅ test_view_has_permission
✅ test_view_no_permission_denied
✅ test_view_user_anon_denied
access.tests.unit.team.test_team_views.TeamViews
✅ test_view_add_attribute_exists_form_class
✅ test_view_add_attribute_exists_model
✅ test_view_add_attribute_exists_permission_required
✅ test_view_add_attribute_exists_template_name
✅ test_view_add_attribute_not_exists_fields
✅ test_view_add_attribute_type_form_class
✅ test_view_add_attribute_type_permission_required
✅ test_view_add_attribute_type_template_name
✅ test_view_add_function_get_initial_callable
✅ test_view_add_function_get_initial_exists
✅ test_view_delete_attribute_exists_model
✅ test_view_delete_attribute_exists_permission_required
✅ test_view_delete_attribute_exists_template_name
✅ test_view_delete_attribute_type_permission_required
✅ test_view_delete_attribute_type_template_name
✅ test_view_display_attribute_exists_model
✅ test_view_display_attribute_exists_permission_required
✅ test_view_display_attribute_exists_template_name
✅ test_view_display_attribute_type_permission_required
✅ test_view_display_attribute_type_template_name
access.tests.unit.team_user.test_team_user.TeamUsersModel
✅ test_attribute_exists_ordering
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
⚪ test_class_inherits_save_history
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
✅ test_model_has_property_parent_object
✅ test_model_property_parent_object_returns_object
access.tests.unit.team_user.test_team_user_api_v2.TeamUserAPI
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_manager
✅ test_api_field_exists_modified
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_manager
✅ test_api_field_type_modified
✅ test_api_field_type_urls
access.tests.unit.team_user.test_team_user_core_history.TeamUsersHistory
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
✅ test_history_entry_item_delete_children_entries_not_exist
✅ test_history_entry_item_delete_field_action
✅ test_history_entry_item_delete_field_after
⚪ test_history_entry_item_delete_field_before
✅ test_history_entry_item_delete_field_item_pk
✅ test_history_entry_item_delete_field_parent_class
✅ test_history_entry_item_delete_field_parent_pk
✅ test_history_entry_item_delete_item_class
access.tests.unit.team_user.test_team_user_permission.TeamUserPermissions
✅ test_model_add_different_organization_denied
✅ test_model_add_different_organization_is_organization_manager_denied
✅ test_model_add_has_no_permission_is_organization_manager
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_different_organization_is_organization_manager_denied
✅ test_model_delete_has_no_permission_is_organization_manager
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
⚪ test_team_user_auth_change_different_organization_denied
⚪ test_team_user_auth_change_has_permission
⚪ test_team_user_auth_change_no_permission_denied
⚪ test_team_user_auth_change_permission_add_denied
⚪ test_team_user_auth_change_permission_view_denied
⚪ test_team_user_auth_change_user_anon_denied
access.tests.unit.team_user.test_team_user_views.TeamUserViews
✅ test_view_add_attribute_exists_form_class
✅ test_view_add_attribute_exists_model
✅ test_view_add_attribute_exists_permission_required
✅ test_view_add_attribute_exists_template_name
✅ test_view_add_attribute_not_exists_fields
✅ test_view_add_attribute_type_form_class
✅ test_view_add_attribute_type_permission_required
✅ test_view_add_attribute_type_template_name
✅ test_view_add_function_get_initial_callable
✅ test_view_add_function_get_initial_exists
✅ test_view_delete_attribute_exists_model
✅ test_view_delete_attribute_exists_permission_required
✅ test_view_delete_attribute_exists_template_name
✅ test_view_delete_attribute_type_permission_required
✅ test_view_delete_attribute_type_template_name
access.tests.unit.tenancy_object.test_tenancy_object.TenancyManagerTests
✅ test_has_attribute_get_queryset
✅ test_is_function_get_queryset
access.tests.unit.tenancy_object.test_tenancy_object.TenancyObjectTests
⚪ test_attribute_not_none_objects
✅ test_class_inherits_save_history
⚪ test_field_not_none_organzation
✅ test_has_attribute_get_organization
✅ test_has_attribute_is_global
✅ test_has_attribute_model_notes
⚪ test_has_attribute_objects
✅ test_has_attribute_organization
✅ test_is_function_get_organization
access.tests.unit.test_access_viewset.AccessViewset
✅ test_api_render_field_allowed_methods_exists
✅ test_api_render_field_allowed_methods_not_empty
✅ test_api_render_field_allowed_methods_type
✅ test_api_render_field_allowed_methods_values
✅ test_api_render_field_view_description_exists
✅ test_api_render_field_view_description_not_empty
✅ test_api_render_field_view_description_type
✅ test_api_render_field_view_name_exists
✅ test_api_render_field_view_name_not_empty
✅ test_api_render_field_view_name_type
✅ test_view_attr_allowed_methods_exists
✅ test_view_attr_allowed_methods_not_empty
✅ test_view_attr_allowed_methods_type
✅ test_view_attr_allowed_methods_values
✅ test_view_attr_metadata_class_exists
✅ test_view_attr_metadata_class_not_empty
✅ test_view_attr_metadata_class_type
✅ test_view_attr_permission_classes_exists
✅ test_view_attr_permission_classes_not_empty
✅ test_view_attr_permission_classes_type
✅ test_view_attr_permission_classes_value
✅ test_view_attr_view_description_exists
✅ test_view_attr_view_description_not_empty
✅ test_view_attr_view_description_type
✅ test_view_attr_view_name_exists
✅ test_view_attr_view_name_not_empty
✅ test_view_attr_view_name_type
api.tests.unit.inventory.test_api_inventory.InventoryAPI
✅ test_api_inventory_device_added
✅ test_api_inventory_device_has_operating_system_added
✅ test_api_inventory_device_has_software_version
⚪ test_api_inventory_device_operating_system_version_is_semver
✅ test_api_inventory_device_serial_number_match
⚪ test_api_inventory_device_software_blank_installed_date_is_updated
✅ test_api_inventory_device_software_has_installed_date
✅ test_api_inventory_device_software_installed_date_type
✅ test_api_inventory_device_uuid_match
⚪ test_api_inventory_exeception_status_sever_error
✅ test_api_inventory_invalid_status_bad_request
✅ test_api_inventory_operating_system_added
✅ test_api_inventory_operating_system_version_added
✅ test_api_inventory_software_added
✅ test_api_inventory_software_category_added
✅ test_api_inventory_software_category_linked_to_software
⚪ test_api_inventory_software_no_version_cleaned
✅ test_api_inventory_software_version_added
✅ test_api_inventory_software_version_linked_to_software
✅ test_api_inventory_software_version_returns_original_version
✅ test_api_inventory_software_version_returns_semver
✅ test_api_inventory_valid_status_ok_existing_device
✅ test_inventory_function_called_permission_check
✅ test_inventory_serializer_inventory_called
✅ test_inventory_serializer_inventory_details_called
✅ test_inventory_serializer_inventory_operating_system_called
✅ test_inventory_serializer_inventory_software_called
api.tests.unit.inventory.test_api_inventory.InventoryAPIDifferentNameSerialNumberMatch
✅ test_api_inventory_device_added
✅ test_api_inventory_device_has_operating_system_added
✅ test_api_inventory_device_has_software_version
⚪ test_api_inventory_device_operating_system_version_is_semver
✅ test_api_inventory_device_serial_number_match
⚪ test_api_inventory_device_software_blank_installed_date_is_updated
✅ test_api_inventory_device_software_has_installed_date
✅ test_api_inventory_device_software_installed_date_type
✅ test_api_inventory_device_uuid_match
✅ test_api_inventory_operating_system_added
✅ test_api_inventory_operating_system_version_added
✅ test_api_inventory_software_added
✅ test_api_inventory_software_category_added
✅ test_api_inventory_software_category_linked_to_software
⚪ test_api_inventory_software_no_version_cleaned
✅ test_api_inventory_software_version_added
✅ test_api_inventory_software_version_linked_to_software
✅ test_api_inventory_software_version_returns_original_version
✅ test_api_inventory_software_version_returns_semver
api.tests.unit.inventory.test_api_inventory.InventoryAPIDifferentNameUUIDMatch
✅ test_api_inventory_device_added
✅ test_api_inventory_device_has_operating_system_added
✅ test_api_inventory_device_has_software_version
⚪ test_api_inventory_device_operating_system_version_is_semver
✅ test_api_inventory_device_serial_number_match
⚪ test_api_inventory_device_software_blank_installed_date_is_updated
✅ test_api_inventory_device_software_has_installed_date
✅ test_api_inventory_device_software_installed_date_type
✅ test_api_inventory_device_uuid_match
✅ test_api_inventory_operating_system_added
✅ test_api_inventory_operating_system_version_added
✅ test_api_inventory_software_added
✅ test_api_inventory_software_category_added
✅ test_api_inventory_software_category_linked_to_software
⚪ test_api_inventory_software_no_version_cleaned
✅ test_api_inventory_software_version_added
✅ test_api_inventory_software_version_linked_to_software
✅ test_api_inventory_software_version_returns_original_version
✅ test_api_inventory_software_version_returns_semver
api.tests.unit.inventory.test_inventory_permission_api.InventoryPermissionsAPI
✅ test_device_auth_add_different_organization_denied
✅ test_device_auth_add_has_permission
✅ test_device_auth_add_no_permission_denied
✅ test_device_auth_add_permission_view_denied
✅ test_device_auth_add_user_anon_denied
api.tests.unit.test_index_viewset.HomeViewset
✅ test_api_render_field_allowed_methods_exists
✅ test_api_render_field_allowed_methods_not_empty
✅ test_api_render_field_allowed_methods_type
✅ test_api_render_field_allowed_methods_values
✅ test_api_render_field_view_description_exists
✅ test_api_render_field_view_description_not_empty
✅ test_api_render_field_view_description_type
✅ test_api_render_field_view_name_exists
✅ test_api_render_field_view_name_not_empty
✅ test_api_render_field_view_name_type
✅ test_view_attr_allowed_methods_exists
✅ test_view_attr_allowed_methods_not_empty
✅ test_view_attr_allowed_methods_type
✅ test_view_attr_allowed_methods_values
✅ test_view_attr_metadata_class_exists
✅ test_view_attr_metadata_class_not_empty
✅ test_view_attr_metadata_class_type
✅ test_view_attr_permission_classes_exists
✅ test_view_attr_permission_classes_not_empty
✅ test_view_attr_permission_classes_type
✅ test_view_attr_permission_classes_value
✅ test_view_attr_view_description_exists
✅ test_view_attr_view_description_not_empty
✅ test_view_attr_view_description_type
✅ test_view_attr_view_name_exists
✅ test_view_attr_view_name_not_empty
✅ test_view_attr_view_name_type
api.tests.unit.token.test_token.APIAuthToken
✅ test_auth_expired_token
✅ test_auth_invalid_token
✅ test_auth_no_token
✅ test_auth_valid_token
✅ test_feat_expired_token_is_removed
✅ test_header_format_invalid_token
✅ test_header_format_invalid_token_spaces
✅ test_token_create_other_user
✅ test_token_create_own
✅ test_token_delete_other_user
✅ test_token_delete_own
✅ test_token_not_saved_to_db
app.tests.unit.test_settings.SettingsDefault
✅ test_setting_default_debug_off
✅ test_setting_default_login_required
✅ test_setting_default_use_tz
app.tests.unit.test_settings.SettingsValues
✅ test_setting_value_login_required
✅ test_setting_value_login_required_not
assistance.tests.unit.knowledge_base.test_knowledge_base.KnowledgeBaseModel
✅ test_attribute_exists_ordering
✅ test_attribute_exists_page_layout
✅ test_attribute_exists_table_fields
✅ test_attribute_is_type_objects
✅ test_attribute_not_callable_page_layout
✅ test_attribute_not_callable_table_fields
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
✅ test_attribute_type_page_layout
✅ test_attribute_type_table_fields
⚪ test_class_inherits_save_history
⚪ test_create_no_organization_fails
⚪ test_edit_no_organization_fails
✅ test_field_exists_verbose_name
✅ test_field_exists_verbose_name_plural
✅ test_field_not_empty_verbose_name
✅ test_field_not_empty_verbose_name_plural
✅ test_field_type_verbose_name
✅ test_field_type_verbose_name_plural
✅ test_has_attr_get_organization
✅ test_has_attr_is_global
✅ test_has_attr_model_notes
✅ test_has_attr_organization
✅ test_history_save
✅ test_model_class_tenancy_manager_function_get_queryset
✅ test_model_class_tenancy_manager_function_get_queryset_called
⚪ test_model_class_tenancy_manager_results_get_queryset
⚪ test_model_class_tenancy_manager_results_get_queryset_super_user
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
assistance.tests.unit.knowledge_base.test_knowledge_base_api_v2.KnowledgeBaseAPI
✅ test_api_field_exists_category
✅ test_api_field_exists_category_display_name
✅ test_api_field_exists_category_id
✅ test_api_field_exists_category_url
✅ test_api_field_exists_content
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_expiry_date
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_public
✅ test_api_field_exists_release_date
✅ test_api_field_exists_responsible_teams_display_name
✅ test_api_field_exists_responsible_teams_id
✅ test_api_field_exists_responsible_teams_url
✅ test_api_field_exists_responsible_user_display_name
✅ test_api_field_exists_responsible_user_id
✅ test_api_field_exists_responsible_user_url
✅ test_api_field_exists_summary
✅ test_api_field_exists_target_user_display_name
✅ test_api_field_exists_target_user_id
✅ test_api_field_exists_target_user_url
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_category
✅ test_api_field_type_category_display_name
✅ test_api_field_type_category_id
✅ test_api_field_type_category_url
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_expiry_date
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_public
✅ test_api_field_type_release_date
✅ test_api_field_type_responsible_teams
✅ test_api_field_type_responsible_teams_display_name
✅ test_api_field_type_responsible_teams_id
✅ test_api_field_type_responsible_teams_url
✅ test_api_field_type_responsible_user
✅ test_api_field_type_responsible_user_display_name
✅ test_api_field_type_responsible_user_id
✅ test_api_field_type_responsible_user_url
✅ test_api_field_type_summary
✅ test_api_field_type_target_user
✅ test_api_field_type_target_user_display_name
✅ test_api_field_type_target_user_id
✅ test_api_field_type_target_user_url
✅ test_api_field_type_urls
assistance.tests.unit.knowledge_base.test_knowledge_base_core_history.KnowledgeBaseHistory
✅ test_history_entry_children_delete
✅ test_history_entry_delete
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
assistance.tests.unit.knowledge_base.test_knowledge_base_history_permission.KnowledgeBaseHistoryPermissions
✅ test_view_history_different_organizaiton_denied
✅ test_view_history_has_permission
✅ test_view_history_no_permission_denied
✅ test_view_history_user_anon_denied
assistance.tests.unit.knowledge_base.test_knowledge_base_permission.KnowledgeBasePermissions
✅ test_model_add_different_organization_denied
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_change_different_organization_denied
✅ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
✅ test_model_view_different_organizaiton_denied
✅ test_model_view_has_permission
✅ test_model_view_no_permission_denied
✅ test_model_view_user_anon_denied
assistance.tests.unit.knowledge_base.test_knowledge_base_views.KnowledgeBaseViews
✅ test_view_add_attribute_exists_form_class
✅ test_view_add_attribute_exists_model
✅ test_view_add_attribute_exists_permission_required
✅ test_view_add_attribute_exists_template_name
✅ test_view_add_attribute_not_exists_fields
✅ test_view_add_attribute_type_form_class
✅ test_view_add_attribute_type_permission_required
✅ test_view_add_attribute_type_template_name
✅ test_view_add_function_get_initial_callable
✅ test_view_add_function_get_initial_exists
✅ test_view_change_attribute_exists_form_class
✅ test_view_change_attribute_exists_model
✅ test_view_change_attribute_exists_permission_required
✅ test_view_change_attribute_exists_template_name
✅ test_view_change_attribute_not_exists_fields
✅ test_view_change_attribute_type_form_class
✅ test_view_change_attribute_type_permission_required
✅ test_view_change_attribute_type_template_name
✅ test_view_delete_attribute_exists_model
✅ test_view_delete_attribute_exists_permission_required
✅ test_view_delete_attribute_exists_template_name
✅ test_view_delete_attribute_type_permission_required
✅ test_view_delete_attribute_type_template_name
✅ test_view_display_attribute_exists_model
✅ test_view_display_attribute_exists_permission_required
✅ test_view_display_attribute_exists_template_name
✅ test_view_display_attribute_type_permission_required
✅ test_view_display_attribute_type_template_name
✅ test_view_index_attribute_exists_model
✅ test_view_index_attribute_exists_permission_required
✅ test_view_index_attribute_exists_template_name
✅ test_view_index_attribute_type_permission_required
✅ test_view_index_attribute_type_template_name
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category.KnowledgeBaseModel
✅ test_attribute_exists_ordering
✅ test_attribute_exists_page_layout
✅ test_attribute_exists_table_fields
✅ test_attribute_is_type_objects
✅ test_attribute_not_callable_page_layout
✅ test_attribute_not_callable_table_fields
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
✅ test_attribute_type_page_layout
✅ test_attribute_type_table_fields
⚪ test_class_inherits_save_history
⚪ test_create_no_organization_fails
⚪ test_edit_no_organization_fails
✅ test_field_exists_verbose_name
✅ test_field_exists_verbose_name_plural
✅ test_field_not_empty_verbose_name
✅ test_field_not_empty_verbose_name_plural
✅ test_field_type_verbose_name
✅ test_field_type_verbose_name_plural
✅ test_has_attr_get_organization
✅ test_has_attr_is_global
✅ test_has_attr_model_notes
✅ test_has_attr_organization
✅ test_history_save
✅ test_model_class_tenancy_manager_function_get_queryset
✅ test_model_class_tenancy_manager_function_get_queryset_called
⚪ test_model_class_tenancy_manager_results_get_queryset
⚪ test_model_class_tenancy_manager_results_get_queryset_super_user
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category_api_v2.KnowledgeBaseCategoryAPI
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_parent_category
✅ test_api_field_exists_parent_category_display_name
✅ test_api_field_exists_parent_category_id
✅ test_api_field_exists_parent_category_url
✅ test_api_field_exists_target_user_display_name
✅ test_api_field_exists_target_user_id
✅ test_api_field_exists_target_user_url
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_parent_category
✅ test_api_field_type_parent_category_display_name
✅ test_api_field_type_parent_category_id
✅ test_api_field_type_parent_category_url
✅ test_api_field_type_target_user
✅ test_api_field_type_target_user_display_name
✅ test_api_field_type_target_user_id
✅ test_api_field_type_target_user_url
✅ test_api_field_type_urls
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category_core_history.KnowledgeBaseHistory
✅ test_history_entry_children_delete
✅ test_history_entry_delete
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category_history_permission.KnowledgeBaseHistoryPermissions
✅ test_view_history_different_organizaiton_denied
✅ test_view_history_has_permission
✅ test_view_history_no_permission_denied
✅ test_view_history_user_anon_denied
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category_permission.KnowledgeBasePermissions
✅ test_model_add_different_organization_denied
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_change_different_organization_denied
✅ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
✅ test_model_view_different_organizaiton_denied
✅ test_model_view_has_permission
✅ test_model_view_no_permission_denied
✅ test_model_view_user_anon_denied
assistance.tests.unit.knowledge_base_category.test_knowledge_base_category_views.ConfigManagementViews
✅ test_view_add_attribute_exists_form_class
✅ test_view_add_attribute_exists_model
✅ test_view_add_attribute_exists_permission_required
✅ test_view_add_attribute_exists_template_name
✅ test_view_add_attribute_not_exists_fields
✅ test_view_add_attribute_type_form_class
✅ test_view_add_attribute_type_permission_required
✅ test_view_add_attribute_type_template_name
✅ test_view_add_function_get_initial_callable
✅ test_view_add_function_get_initial_exists
✅ test_view_change_attribute_exists_form_class
✅ test_view_change_attribute_exists_model
✅ test_view_change_attribute_exists_permission_required
✅ test_view_change_attribute_exists_template_name
✅ test_view_change_attribute_not_exists_fields
✅ test_view_change_attribute_type_form_class
✅ test_view_change_attribute_type_permission_required
✅ test_view_change_attribute_type_template_name
✅ test_view_delete_attribute_exists_model
✅ test_view_delete_attribute_exists_permission_required
✅ test_view_delete_attribute_exists_template_name
✅ test_view_delete_attribute_type_permission_required
✅ test_view_delete_attribute_type_template_name
✅ test_view_display_attribute_exists_model
✅ test_view_display_attribute_exists_permission_required
✅ test_view_display_attribute_exists_template_name
✅ test_view_display_attribute_type_permission_required
✅ test_view_display_attribute_type_template_name
✅ test_view_index_attribute_exists_model
✅ test_view_index_attribute_exists_permission_required
✅ test_view_index_attribute_exists_template_name
✅ test_view_index_attribute_type_permission_required
✅ test_view_index_attribute_type_template_name
assistance.tests.unit.ticket_request.test_ticket_request_api_v2.RequestTicketAPI
✅ test_api_field_exists__urls_comments
✅ test_api_field_exists__urls_linked_items
✅ test_api_field_exists__urls_related_tickets
✅ test_api_field_exists_assigned_teams
✅ test_api_field_exists_assigned_teams_display_name
✅ test_api_field_exists_assigned_teams_id
✅ test_api_field_exists_assigned_teams_url
✅ test_api_field_exists_assigned_users
✅ test_api_field_exists_assigned_users_display_name
✅ test_api_field_exists_assigned_users_first_name
✅ test_api_field_exists_assigned_users_id
✅ test_api_field_exists_assigned_users_is_active
✅ test_api_field_exists_assigned_users_last_name
✅ test_api_field_exists_assigned_users_url
✅ test_api_field_exists_assigned_users_username
✅ test_api_field_exists_category
✅ test_api_field_exists_category_display_name
✅ test_api_field_exists_category_url
✅ test_api_field_exists_created
✅ test_api_field_exists_date_closed
✅ test_api_field_exists_description
✅ test_api_field_exists_display_name
✅ test_api_field_exists_duration
✅ test_api_field_exists_estimate
✅ test_api_field_exists_external_ref
✅ test_api_field_exists_external_system
✅ test_api_field_exists_id
✅ test_api_field_exists_impact
✅ test_api_field_exists_is_deleted
✅ test_api_field_exists_milestone
✅ test_api_field_exists_milestone_display_name
✅ test_api_field_exists_milestone_id
✅ test_api_field_exists_milestone_url
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_opened_by
✅ test_api_field_exists_opened_by_display_name
✅ test_api_field_exists_opened_by_first_name
✅ test_api_field_exists_opened_by_id
✅ test_api_field_exists_opened_by_is_active
✅ test_api_field_exists_opened_by_last_name
✅ test_api_field_exists_opened_by_url
✅ test_api_field_exists_opened_by_username
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_priority
✅ test_api_field_exists_project
✅ test_api_field_exists_project_display_name
✅ test_api_field_exists_project_id
✅ test_api_field_exists_project_url
✅ test_api_field_exists_status
✅ test_api_field_exists_status_badge
✅ test_api_field_exists_status_badge_icon
✅ test_api_field_exists_status_badge_icon_name
✅ test_api_field_exists_status_badge_icon_style
✅ test_api_field_exists_status_badge_text
✅ test_api_field_exists_status_badge_text_style
✅ test_api_field_exists_subscribed_teams
✅ test_api_field_exists_subscribed_teams_display_name
✅ test_api_field_exists_subscribed_teams_id
✅ test_api_field_exists_subscribed_teams_url
✅ test_api_field_exists_subscribed_users
✅ test_api_field_exists_subscribed_users_display_name
✅ test_api_field_exists_subscribed_users_first_name
✅ test_api_field_exists_subscribed_users_id
✅ test_api_field_exists_subscribed_users_is_active
✅ test_api_field_exists_subscribed_users_last_name
✅ test_api_field_exists_subscribed_users_url
✅ test_api_field_exists_subscribed_users_username
✅ test_api_field_exists_ticket_type
✅ test_api_field_exists_title
✅ test_api_field_exists_urgency
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type__urls_comments
✅ test_api_field_type__urls_linked_items
✅ test_api_field_type__urls_related_tickets
✅ test_api_field_type_assigned_teams
✅ test_api_field_type_assigned_teams_display_name
✅ test_api_field_type_assigned_teams_id
✅ test_api_field_type_assigned_teams_url
✅ test_api_field_type_assigned_users
✅ test_api_field_type_assigned_users_display_name
✅ test_api_field_type_assigned_users_first_name
✅ test_api_field_type_assigned_users_id
✅ test_api_field_type_assigned_users_is_active
✅ test_api_field_type_assigned_users_last_name
✅ test_api_field_type_assigned_users_url
✅ test_api_field_type_assigned_users_username
✅ test_api_field_type_category
✅ test_api_field_type_category_display_name
✅ test_api_field_type_category_url
✅ test_api_field_type_created
✅ test_api_field_type_date_closed
✅ test_api_field_type_description
✅ test_api_field_type_display_name
✅ test_api_field_type_duration
✅ test_api_field_type_estimate
✅ test_api_field_type_external_ref
✅ test_api_field_type_external_system
✅ test_api_field_type_id
✅ test_api_field_type_impact
✅ test_api_field_type_is_deleted
✅ test_api_field_type_milestone
✅ test_api_field_type_milestone_display_name
✅ test_api_field_type_milestone_id
✅ test_api_field_type_milestone_url
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_opened_by
✅ test_api_field_type_opened_by_display_name
✅ test_api_field_type_opened_by_first_name
✅ test_api_field_type_opened_by_id
✅ test_api_field_type_opened_by_is_active
✅ test_api_field_type_opened_by_last_name
✅ test_api_field_type_opened_by_url
✅ test_api_field_type_opened_by_username
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_project
✅ test_api_field_type_project_display_name
✅ test_api_field_type_project_id
✅ test_api_field_type_project_url
✅ test_api_field_type_status
✅ test_api_field_type_status_badge
✅ test_api_field_type_status_badge_icon
✅ test_api_field_type_status_badge_icon_name
✅ test_api_field_type_status_badge_icon_style
✅ test_api_field_type_status_badge_text
✅ test_api_field_type_status_badge_text_style
✅ test_api_field_type_subscribed_teams
✅ test_api_field_type_subscribed_teams_display_name
✅ test_api_field_type_subscribed_teams_id
✅ test_api_field_type_subscribed_teams_url
✅ test_api_field_type_subscribed_users
✅ test_api_field_type_subscribed_users_display_name
✅ test_api_field_type_subscribed_users_first_name
✅ test_api_field_type_subscribed_users_id
✅ test_api_field_type_subscribed_users_is_active
✅ test_api_field_type_subscribed_users_last_name
✅ test_api_field_type_subscribed_users_url
✅ test_api_field_type_subscribed_users_username
✅ test_api_field_type_title
✅ test_api_field_type_urgency
✅ test_api_field_type_urls
config_management.tests.unit.config_groups.test_config_group_item_ticket_api_v2.ConfigGroupsTicketAPI
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_item
✅ test_api_field_exists_item_display_name
✅ test_api_field_exists_item_id
✅ test_api_field_exists_item_name
✅ test_api_field_exists_item_type
✅ test_api_field_exists_item_url
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_ticket
✅ test_api_field_exists_ticket_display_name
✅ test_api_field_exists_ticket_id
✅ test_api_field_exists_ticket_title
✅ test_api_field_exists_ticket_url
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_item
✅ test_api_field_type_item_display_name
✅ test_api_field_type_item_id
✅ test_api_field_type_item_name
✅ test_api_field_type_item_type
✅ test_api_field_type_item_url
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_ticket
✅ test_api_field_type_ticket_display_name
✅ test_api_field_type_ticket_id
✅ test_api_field_type_ticket_title
✅ test_api_field_type_ticket_url
✅ test_api_field_type_urls
✅ test_api_field_value_item_id
✅ test_api_field_value_item_type
config_management.tests.unit.config_groups.test_config_groups.ConfigGroupsModel
✅ test_attribute_exists_ordering
✅ test_attribute_exists_page_layout
✅ test_attribute_exists_table_fields
✅ test_attribute_is_type_objects
✅ test_attribute_not_callable_page_layout
✅ test_attribute_not_callable_table_fields
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
✅ test_attribute_type_page_layout
✅ test_attribute_type_table_fields
⚪ test_class_inherits_save_history
⚪ test_config_groups_config_keys_valid_ansible_variable
✅ test_config_groups_count_child_groups
✅ test_config_groups_rendered_config_inheritence_existing_key_present
✅ test_config_groups_rendered_config_inheritence_overwrite
✅ test_config_groups_rendered_config_is_correct
✅ test_config_groups_rendered_config_is_dict
✅ test_config_groups_rendered_config_not_empty
⚪ test_create_no_organization_fails
⚪ test_edit_no_organization_fails
✅ test_field_exists_verbose_name
✅ test_field_exists_verbose_name_plural
✅ test_field_not_empty_verbose_name
✅ test_field_not_empty_verbose_name_plural
✅ test_field_type_verbose_name
✅ test_field_type_verbose_name_plural
✅ test_has_attr_get_organization
✅ test_has_attr_is_global
✅ test_has_attr_model_notes
✅ test_has_attr_organization
✅ test_history_save
✅ test_model_class_tenancy_manager_function_get_queryset
✅ test_model_class_tenancy_manager_function_get_queryset_called
⚪ test_model_class_tenancy_manager_results_get_queryset
⚪ test_model_class_tenancy_manager_results_get_queryset_super_user
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
config_management.tests.unit.config_groups.test_config_groups_api.ConfigGroupsAPI
✅ test_api_field_exists_config
✅ test_api_field_exists_id
✅ test_api_field_exists_name
✅ test_api_field_exists_parent
✅ test_api_field_exists_parent_id
✅ test_api_field_exists_parent_name
✅ test_api_field_exists_parent_url
✅ test_api_field_exists_url
✅ test_api_field_type_config
✅ test_api_field_type_id
✅ test_api_field_type_name
✅ test_api_field_type_parent
✅ test_api_field_type_parent_id
✅ test_api_field_type_parent_name
✅ test_api_field_type_parent_url
✅ test_api_field_type_url
config_management.tests.unit.config_groups.test_config_groups_api_v2.ConfigGroupsAPI
✅ test_api_field_exists_config
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_parent
✅ test_api_field_exists_parent_display_name
✅ test_api_field_exists_parent_id
✅ test_api_field_exists_parent_url
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_exists_urls_tickets
✅ test_api_field_type_config
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_parent
✅ test_api_field_type_parent_display_name
✅ test_api_field_type_parent_id
✅ test_api_field_type_parent_url
✅ test_api_field_type_urls
✅ test_api_field_type_urls_tickets
config_management.tests.unit.config_groups.test_config_groups_core_history.ConfigGroupsHistory
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
✅ test_history_entry_item_delete_children_entries_not_exist
✅ test_history_entry_item_delete_field_action
✅ test_history_entry_item_delete_field_after
⚪ test_history_entry_item_delete_field_before
✅ test_history_entry_item_delete_field_item_pk
✅ test_history_entry_item_delete_field_parent_class
✅ test_history_entry_item_delete_field_parent_pk
✅ test_history_entry_item_delete_item_class
config_management.tests.unit.config_groups.test_config_groups_history_permission.ConfigGroupsHistoryPermissions
✅ test_auth_view_history_different_organizaiton_denied
✅ test_auth_view_history_has_permission
✅ test_auth_view_history_no_permission_denied
✅ test_auth_view_history_user_anon_denied
config_management.tests.unit.config_groups.test_config_groups_permission.ConfigGroupPermissions
✅ test_model_add_different_organization_denied
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_change_different_organization_denied
✅ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
✅ test_model_view_different_organizaiton_denied
✅ test_model_view_has_permission
✅ test_model_view_no_permission_denied
✅ test_model_view_user_anon_denied
config_management.tests.unit.config_groups.test_config_management_views.ConfigManagementViews
✅ test_view_add_attribute_exists_form_class
✅ test_view_add_attribute_exists_model
✅ test_view_add_attribute_exists_permission_required
✅ test_view_add_attribute_exists_template_name
✅ test_view_add_attribute_not_exists_fields
✅ test_view_add_attribute_type_form_class
✅ test_view_add_attribute_type_permission_required
✅ test_view_add_attribute_type_template_name
✅ test_view_add_function_get_initial_callable
✅ test_view_add_function_get_initial_exists
✅ test_view_change_attribute_exists_form_class
✅ test_view_change_attribute_exists_model
✅ test_view_change_attribute_exists_permission_required
✅ test_view_change_attribute_exists_template_name
✅ test_view_change_attribute_not_exists_fields
✅ test_view_change_attribute_type_form_class
✅ test_view_change_attribute_type_permission_required
✅ test_view_change_attribute_type_template_name
✅ test_view_delete_attribute_exists_model
✅ test_view_delete_attribute_exists_permission_required
✅ test_view_delete_attribute_exists_template_name
✅ test_view_delete_attribute_type_permission_required
✅ test_view_delete_attribute_type_template_name
✅ test_view_display_attribute_exists_model
✅ test_view_display_attribute_exists_permission_required
✅ test_view_display_attribute_exists_template_name
✅ test_view_display_attribute_type_permission_required
✅ test_view_display_attribute_type_template_name
✅ test_view_index_attribute_exists_model
✅ test_view_index_attribute_exists_permission_required
✅ test_view_index_attribute_exists_template_name
✅ test_view_index_attribute_type_permission_required
✅ test_view_index_attribute_type_template_name
config_management.tests.unit.config_groups_software.test_config_groups_software.ConfigGroupSoftwareModel
✅ test_attribute_exists_ordering
✅ test_attribute_exists_page_layout
✅ test_attribute_exists_table_fields
✅ test_attribute_is_type_objects
✅ test_attribute_not_callable_page_layout
✅ test_attribute_not_callable_table_fields
✅ test_attribute_not_empty_ordering
✅ test_attribute_type_ordering
✅ test_attribute_type_page_layout
✅ test_attribute_type_table_fields
⚪ test_class_inherits_save_history
⚪ test_create_no_organization_fails
⚪ test_edit_no_organization_fails
✅ test_field_exists_verbose_name
✅ test_field_exists_verbose_name_plural
✅ test_field_not_empty_verbose_name
✅ test_field_not_empty_verbose_name_plural
✅ test_field_type_verbose_name
✅ test_field_type_verbose_name_plural
✅ test_has_attr_get_organization
✅ test_has_attr_is_global
✅ test_has_attr_model_notes
✅ test_has_attr_organization
✅ test_history_save
✅ test_model_class_tenancy_manager_function_get_queryset
✅ test_model_class_tenancy_manager_function_get_queryset_called
⚪ test_model_class_tenancy_manager_results_get_queryset
⚪ test_model_class_tenancy_manager_results_get_queryset_super_user
✅ test_model_fields_parameter_has_help_text
✅ test_model_fields_parameter_has_verbose_name
✅ test_model_fields_parameter_not_empty_help_text
✅ test_model_fields_parameter_not_empty_verbose_name
✅ test_model_fields_parameter_type_help_text
✅ test_model_fields_parameter_type_verbose_name
✅ test_model_has_property_parent_object
✅ test_model_property_parent_object_returns_object
config_management.tests.unit.config_groups_software.test_config_groups_software_api_v2.ConfigGroupsAPI
✅ test_api_field_exists_action
✅ test_api_field_exists_config_group
✅ test_api_field_exists_config_group_display_name
✅ test_api_field_exists_config_group_id
✅ test_api_field_exists_config_group_url
✅ test_api_field_exists_created
✅ test_api_field_exists_display_name
✅ test_api_field_exists_id
✅ test_api_field_exists_model_notes
✅ test_api_field_exists_modified
✅ test_api_field_exists_organization
✅ test_api_field_exists_organization_display_name
✅ test_api_field_exists_organization_id
✅ test_api_field_exists_organization_url
✅ test_api_field_exists_software
✅ test_api_field_exists_software_display_name
✅ test_api_field_exists_software_id
✅ test_api_field_exists_software_url
✅ test_api_field_exists_urls
✅ test_api_field_exists_urls_self
✅ test_api_field_exists_version
✅ test_api_field_exists_version_display_name
✅ test_api_field_exists_version_id
✅ test_api_field_exists_version_url
✅ test_api_field_type_action
✅ test_api_field_type_config_group
✅ test_api_field_type_config_group_display_name
✅ test_api_field_type_config_group_id
✅ test_api_field_type_config_group_url
✅ test_api_field_type_created
✅ test_api_field_type_display_name
✅ test_api_field_type_id
✅ test_api_field_type_model_notes
✅ test_api_field_type_modified
✅ test_api_field_type_organization
✅ test_api_field_type_organization_display_name
✅ test_api_field_type_organization_id
✅ test_api_field_type_organization_url
✅ test_api_field_type_software
✅ test_api_field_type_software_display_name
✅ test_api_field_type_software_id
✅ test_api_field_type_software_url
✅ test_api_field_type_urls
✅ test_api_field_type_version
✅ test_api_field_type_version_display_name
✅ test_api_field_type_version_id
✅ test_api_field_type_version_url
config_management.tests.unit.config_groups_software.test_config_groups_software_core_history.ConfigGroupSoftwareHistory
✅ test_history_entry_item_add_field_action
⚪ test_history_entry_item_add_field_after
✅ test_history_entry_item_add_field_before
✅ test_history_entry_item_add_field_item_class
✅ test_history_entry_item_add_field_item_pk
✅ test_history_entry_item_change_field_action
✅ test_history_entry_item_change_field_after
⚪ test_history_entry_item_change_field_before
✅ test_history_entry_item_change_field_item_class
✅ test_history_entry_item_change_field_item_pk
✅ test_history_entry_item_delete_children_entries_not_exist
✅ test_history_entry_item_delete_field_action
✅ test_history_entry_item_delete_field_after
⚪ test_history_entry_item_delete_field_before
✅ test_history_entry_item_delete_field_item_pk
✅ test_history_entry_item_delete_field_parent_class
✅ test_history_entry_item_delete_field_parent_pk
✅ test_history_entry_item_delete_item_class
config_management.tests.unit.config_groups_software.test_config_groups_software_history_permission.ConfigGroupSoftwaresHistoryPermissions
✅ test_view_history_different_organizaiton_denied
✅ test_view_history_has_permission
✅ test_view_history_no_permission_denied
✅ test_view_history_user_anon_denied
config_management.tests.unit.config_groups_software.test_config_groups_software_permission.ConfigGroupSoftwarePermissions
⚪ test_config_groups_auth_view_different_organizaiton_denied
⚪ test_config_groups_auth_view_has_permission
⚪ test_config_groups_auth_view_no_permission_denied
⚪ test_config_groups_auth_view_user_anon_denied
✅ test_model_add_different_organization_denied
✅ test_model_add_has_permission
✅ test_model_add_no_permission_denied
✅ test_model_add_permission_view_denied
✅ test_model_add_user_anon_denied
✅ test_model_change_different_organization_denied
⚪ test_model_change_has_permission
✅ test_model_change_no_permission_denied
✅ test_model_change_permission_add_denied
✅ test_model_change_permission_view_denied
✅ test_model_change_user_anon_denied
✅ test_model_delete_different_organization_denied
✅ test_model_delete_has_permission
✅ test_model_delete_no_permission_denied
✅ test_model_delete_permission_add_denied
✅ test_model_delete_permission_change_denied
✅ test_model_delete_permission_view_denied
✅ test_model_delete_user_anon_denied
⚪ test_model_requires_attribute_parent_model
config_management.tests.unit.config_groups_software.test_config_groups_software_views.ConfigGroupsSoftwareViews
✅ test_view_add_attribute_exists_form_class
Report exceeded GitHub limit of 65535 bytes and has been trimmed
Annotations
Check failure on line 0 in unit.JUnit.xml
github-actions / Unit Test Report [Python 3.12]
pytest ► core.tests.unit.ticket.test_ticket_permission_api.ChangeTicketPermissionsAPI ► test_add_has_permission
Failed test found in:
unit.JUnit.xml
Error:
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a75f2090>
Raw output
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a75f2090>
sql = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",..., %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:42.344027', '2024-11-13 13:11:42.350012', 2, None, 'an add ticket', ...)
ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f45a75f2090>})
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
> return self.cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a7452600>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:42.344027', '2024-11-13 13:11:42.350012', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E sqlite3.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
The above exception was the direct cause of the following exception:
self = <test_ticket_permission_api.ChangeTicketPermissionsAPI testMethod=test_add_has_permission>
def test_add_has_permission(self):
""" Check correct permission for add
Attempt to add as user with permission
"""
client = Client()
if self.url_kwargs:
url = reverse(self.app_namespace + ':' + self.url_list, kwargs = self.url_kwargs)
else:
url = reverse(self.app_namespace + ':' + self.url_list)
client.force_login(self.add_user)
> response = client.post(url, data=self.add_data)
api/tests/abstract/api_permissions.py:211:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1158: in post
response = super().post(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:503: in post
return self.generic(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:676: in generic
return self.request(**r)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1092: in request
self.check_exception(response)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:805: in check_exception
raise exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/exception.py:55: in inner
response = get_response(request)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/base.py:197: in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
return view_func(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/viewsets.py:124: in view
return self.dispatch(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:509: in dispatch
response = self.handle_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:469: in handle_exception
self.raise_uncaught_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:480: in raise_uncaught_exception
raise exc
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:506: in dispatch
response = handler(request, *args, **kwargs)
api/views/itim/change_ticket.py:30: in create
return super().create(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:19: in create
self.perform_create(serializer)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:24: in perform_create
serializer.save()
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:208: in save
self.instance = self.create(validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:989: in create
instance = ModelClass._default_manager.create(**validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:679: in create
obj.save(force_insert=True, using=self.db)
core/models/ticket/ticket.py:803: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
access/models.py:271: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
core/mixin/history_save.py:183: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:891: in save
self.save_base(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:997: in save_base
updated = self._save_table(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1160: in _save_table
results = self._do_insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1201: in _do_insert
return manager._insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:1847: in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:79: in execute
return self._execute_with_wrappers(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
return executor(sql, params, many, context)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:100: in _execute
with self.db.wrap_database_errors:
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/utils.py:91: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105: in _execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a7452600>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:42.344027', '2024-11-13 13:11:42.350012', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E django.db.utils.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
Check failure on line 0 in unit.JUnit.xml
github-actions / Unit Test Report [Python 3.12]
pytest ► core.tests.unit.ticket.test_ticket_permission_api.IncidentTicketPermissionsAPI ► test_add_has_permission
Failed test found in:
unit.JUnit.xml
Error:
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a7289100>
Raw output
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a7289100>
sql = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",..., %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:45.326754', '2024-11-13 13:11:45.332757', 2, None, 'an add ticket', ...)
ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f45a7289100>})
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
> return self.cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a7333800>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:45.326754', '2024-11-13 13:11:45.332757', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E sqlite3.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
The above exception was the direct cause of the following exception:
self = <test_ticket_permission_api.IncidentTicketPermissionsAPI testMethod=test_add_has_permission>
def test_add_has_permission(self):
""" Check correct permission for add
Attempt to add as user with permission
"""
client = Client()
if self.url_kwargs:
url = reverse(self.app_namespace + ':' + self.url_list, kwargs = self.url_kwargs)
else:
url = reverse(self.app_namespace + ':' + self.url_list)
client.force_login(self.add_user)
> response = client.post(url, data=self.add_data)
api/tests/abstract/api_permissions.py:211:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1158: in post
response = super().post(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:503: in post
return self.generic(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:676: in generic
return self.request(**r)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1092: in request
self.check_exception(response)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:805: in check_exception
raise exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/exception.py:55: in inner
response = get_response(request)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/base.py:197: in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
return view_func(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/viewsets.py:124: in view
return self.dispatch(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:509: in dispatch
response = self.handle_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:469: in handle_exception
self.raise_uncaught_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:480: in raise_uncaught_exception
raise exc
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:506: in dispatch
response = handler(request, *args, **kwargs)
api/views/itim/incident_ticket.py:30: in create
return super().create(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:19: in create
self.perform_create(serializer)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:24: in perform_create
serializer.save()
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:208: in save
self.instance = self.create(validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:989: in create
instance = ModelClass._default_manager.create(**validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:679: in create
obj.save(force_insert=True, using=self.db)
core/models/ticket/ticket.py:803: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
access/models.py:271: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
core/mixin/history_save.py:183: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:891: in save
self.save_base(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:997: in save_base
updated = self._save_table(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1160: in _save_table
results = self._do_insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1201: in _do_insert
return manager._insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:1847: in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:79: in execute
return self._execute_with_wrappers(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
return executor(sql, params, many, context)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:100: in _execute
with self.db.wrap_database_errors:
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/utils.py:91: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105: in _execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a7333800>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:45.326754', '2024-11-13 13:11:45.332757', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E django.db.utils.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
Check failure on line 0 in unit.JUnit.xml
github-actions / Unit Test Report [Python 3.12]
pytest ► core.tests.unit.ticket.test_ticket_permission_api.ProblemTicketPermissionsAPI ► test_add_has_permission
Failed test found in:
unit.JUnit.xml
Error:
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a6e829f0>
Raw output
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a6e829f0>
sql = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",..., %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:47.950738', '2024-11-13 13:11:47.956756', 2, None, 'an add ticket', ...)
ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f45a6e829f0>})
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
> return self.cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a6f88e60>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:47.950738', '2024-11-13 13:11:47.956756', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E sqlite3.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
The above exception was the direct cause of the following exception:
self = <test_ticket_permission_api.ProblemTicketPermissionsAPI testMethod=test_add_has_permission>
def test_add_has_permission(self):
""" Check correct permission for add
Attempt to add as user with permission
"""
client = Client()
if self.url_kwargs:
url = reverse(self.app_namespace + ':' + self.url_list, kwargs = self.url_kwargs)
else:
url = reverse(self.app_namespace + ':' + self.url_list)
client.force_login(self.add_user)
> response = client.post(url, data=self.add_data)
api/tests/abstract/api_permissions.py:211:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1158: in post
response = super().post(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:503: in post
return self.generic(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:676: in generic
return self.request(**r)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1092: in request
self.check_exception(response)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:805: in check_exception
raise exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/exception.py:55: in inner
response = get_response(request)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/base.py:197: in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
return view_func(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/viewsets.py:124: in view
return self.dispatch(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:509: in dispatch
response = self.handle_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:469: in handle_exception
self.raise_uncaught_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:480: in raise_uncaught_exception
raise exc
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:506: in dispatch
response = handler(request, *args, **kwargs)
api/views/itim/problem_ticket.py:30: in create
return super().create(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:19: in create
self.perform_create(serializer)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:24: in perform_create
serializer.save()
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:208: in save
self.instance = self.create(validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:989: in create
instance = ModelClass._default_manager.create(**validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:679: in create
obj.save(force_insert=True, using=self.db)
core/models/ticket/ticket.py:803: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
access/models.py:271: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
core/mixin/history_save.py:183: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:891: in save
self.save_base(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:997: in save_base
updated = self._save_table(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1160: in _save_table
results = self._do_insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1201: in _do_insert
return manager._insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:1847: in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:79: in execute
return self._execute_with_wrappers(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
return executor(sql, params, many, context)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:100: in _execute
with self.db.wrap_database_errors:
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/utils.py:91: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105: in _execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a6f88e60>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:47.950738', '2024-11-13 13:11:47.956756', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E django.db.utils.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
Check failure on line 0 in unit.JUnit.xml
github-actions / Unit Test Report [Python 3.12]
pytest ► core.tests.unit.ticket.test_ticket_permission_api.RequestTicketPermissionsAPI ► test_add_has_permission
Failed test found in:
unit.JUnit.xml
Error:
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a731c770>
Raw output
self = <django.db.backends.utils.CursorWrapper object at 0x7f45a731c770>
sql = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",..., %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:50.576305', '2024-11-13 13:11:50.582322', 2, None, 'an add ticket', ...)
ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f45a731c770>})
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
> return self.cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a71ed760>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:50.576305', '2024-11-13 13:11:50.582322', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E sqlite3.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError
The above exception was the direct cause of the following exception:
self = <test_ticket_permission_api.RequestTicketPermissionsAPI testMethod=test_add_has_permission>
def test_add_has_permission(self):
""" Check correct permission for add
Attempt to add as user with permission
"""
client = Client()
if self.url_kwargs:
url = reverse(self.app_namespace + ':' + self.url_list, kwargs = self.url_kwargs)
else:
url = reverse(self.app_namespace + ':' + self.url_list)
client.force_login(self.add_user)
> response = client.post(url, data=self.add_data)
api/tests/abstract/api_permissions.py:211:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1158: in post
response = super().post(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:503: in post
return self.generic(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:676: in generic
return self.request(**r)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:1092: in request
self.check_exception(response)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/test/client.py:805: in check_exception
raise exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/exception.py:55: in inner
response = get_response(request)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/core/handlers/base.py:197: in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
return view_func(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/viewsets.py:124: in view
return self.dispatch(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:509: in dispatch
response = self.handle_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:469: in handle_exception
self.raise_uncaught_exception(exc)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:480: in raise_uncaught_exception
raise exc
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/views.py:506: in dispatch
response = handler(request, *args, **kwargs)
api/views/assistance/request_ticket.py:29: in create
return super().create(request, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:19: in create
self.perform_create(serializer)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/mixins.py:24: in perform_create
serializer.save()
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:208: in save
self.instance = self.create(validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/rest_framework/serializers.py:989: in create
instance = ModelClass._default_manager.create(**validated_data)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:679: in create
obj.save(force_insert=True, using=self.db)
core/models/ticket/ticket.py:803: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
access/models.py:271: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
core/mixin/history_save.py:183: in save
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:891: in save
self.save_base(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:997: in save_base
updated = self._save_table(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1160: in _save_table
results = self._do_insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/base.py:1201: in _do_insert
return manager._insert(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/manager.py:87: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/query.py:1847: in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
cursor.execute(sql, params)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:79: in execute
return self._execute_with_wrappers(
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
return executor(sql, params, many, context)
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:100: in _execute
with self.db.wrap_database_errors:
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/utils.py:91: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/utils.py:105: in _execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f45a71ed760>
query = 'INSERT INTO "core_ticket" ("organization_id", "created", "modified", "status", "category_id", "title", "description",...inish_date") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "core_ticket"."id"'
params = (1, '2024-11-13 13:11:50.576305', '2024-11-13 13:11:50.582322', 2, None, 'an add ticket', ...)
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E django.db.utils.IntegrityError: NOT NULL constraint failed: core_ticket.ticket_type
/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py:354: IntegrityError