============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 -- /usr/bin/python cachedir: .pytest_cache rootdir: /build/python-django-rest-framework/src/django-rest-framework-3.13.1, configfile: setup.cfg collecting ... collected 1412 items tests/test_api_client.py::APIClientTests::test_api_client SKIPPED (c...) [ 0%] tests/test_api_client.py::APIClientTests::test_body_params SKIPPED (...) [ 0%] tests/test_api_client.py::APIClientTests::test_download_response SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_form_params SKIPPED (...) [ 0%] tests/test_api_client.py::APIClientTests::test_multipart_encoding SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_multipart_encoding_in_body SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_multipart_encoding_multiple_values SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_multipart_encoding_no_file SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_multipart_encoding_string_file_content SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_path_params SKIPPED (...) [ 0%] tests/test_api_client.py::APIClientTests::test_query_params SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_query_params_with_multiple_values SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_raw_upload SKIPPED (c...) [ 0%] tests/test_api_client.py::APIClientTests::test_raw_upload_explicit_content_type SKIPPED [ 0%] tests/test_api_client.py::APIClientTests::test_raw_upload_string_file_content SKIPPED [ 1%] tests/test_api_client.py::APIClientTests::test_session_headers SKIPPED [ 1%] tests/test_api_client.py::APIClientTests::test_text_response SKIPPED [ 1%] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding SKIPPED [ 1%] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_in_body SKIPPED [ 1%] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_multiple_values SKIPPED [ 1%] tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction FAILED [ 1%] tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management FAILED [ 1%] tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 1%] tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 1%] tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view FAILED [ 1%] tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps FAILED [ 1%] tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields FAILED [ 1%] tests/test_authtoken.py::AuthTokenTests::test_token_string_representation FAILED [ 1%] tests/test_authtoken.py::AuthTokenTests::test_validate_raise_error_if_no_credentials_provided FAILED [ 2%] tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_output FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user FAILED [ 2%] tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token FAILED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_empty_bound_field PASSED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_populated_bound_field PASSED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_error_bound_field PASSED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_delete_field PASSED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_as_form_fields PASSED [ 2%] tests/test_bound_fields.py::TestSimpleBoundField::test_rendering_boolean_field PASSED [ 2%] tests/test_bound_fields.py::TestNestedBoundField::test_nested_empty_bound_field PASSED [ 3%] tests/test_bound_fields.py::TestNestedBoundField::test_as_form_fields PASSED [ 3%] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_none_value PASSED [ 3%] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_not_mappable_value PASSED [ 3%] tests/test_bound_fields.py::TestJSONBoundField::test_as_form_fields PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect_arguments PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_authentication_classes PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_calling_method PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_calling_patch_method PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_calling_put_method PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_parser_classes PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_permission_classes PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_renderer_classes PASSED [ 3%] tests/test_decorators.py::DecoratorTestCase::test_schema PASSED [ 4%] tests/test_decorators.py::DecoratorTestCase::test_throttle_classes PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_defaults PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_detail_required PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_already_mapped PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_http_methods PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_overwrite PASSED [ 4%] tests/test_decorators.py::ActionDecoratorTestCase::test_view_name_kwargs PASSED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_markdown SKIPPED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_allows_empty_description PASSED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_empty PASSED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_promise PASSED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_description_attribute PASSED [ 4%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_docstring PASSED [ 5%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_preferences_name_over_suffix PASSED [ 5%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_class_name PASSED [ 5%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_name_attribute PASSED [ 5%] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_suffix_attribute PASSED [ 5%] tests/test_description.py::test_dedent_tabs PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_coreapi_raises_error SKIPPED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_date PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_datetime PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_decimal PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_empty_returnlist PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_object_with_tolist PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_time PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_time_tz PASSED [ 5%] tests/test_encoders.py::JSONEncoderTests::test_encode_timedelta PASSED [ 6%] tests/test_encoders.py::JSONEncoderTests::test_encode_uuid PASSED [ 6%] tests/test_exceptions.py::ExceptionTestCase::test_get_error_details PASSED [ 6%] tests/test_exceptions.py::ExceptionTestCase::test_get_full_details_with_throttling PASSED [ 6%] tests/test_exceptions.py::ErrorDetailTests::test_eq PASSED [ 6%] tests/test_exceptions.py::ErrorDetailTests::test_hash PASSED [ 6%] tests/test_exceptions.py::ErrorDetailTests::test_ne PASSED [ 6%] tests/test_exceptions.py::ErrorDetailTests::test_repr PASSED [ 6%] tests/test_exceptions.py::ErrorDetailTests::test_str PASSED [ 6%] tests/test_exceptions.py::TranslationTests::test_message PASSED [ 6%] tests/test_exceptions.py::test_server_error PASSED [ 6%] tests/test_exceptions.py::test_bad_request PASSED [ 6%] tests/test_fields.py::TestIsSimpleCallable::test_method PASSED [ 6%] tests/test_fields.py::TestIsSimpleCallable::test_function PASSED [ 6%] tests/test_fields.py::TestIsSimpleCallable::test_4602_regression PASSED [ 7%] tests/test_fields.py::TestIsSimpleCallable::test_builtin_function PASSED [ 7%] tests/test_fields.py::TestIsSimpleCallable::test_type_annotation PASSED [ 7%] tests/test_fields.py::TestEmpty::test_required PASSED [ 7%] tests/test_fields.py::TestEmpty::test_not_required PASSED [ 7%] tests/test_fields.py::TestEmpty::test_disallow_null PASSED [ 7%] tests/test_fields.py::TestEmpty::test_allow_null PASSED [ 7%] tests/test_fields.py::TestEmpty::test_disallow_blank PASSED [ 7%] tests/test_fields.py::TestEmpty::test_allow_blank PASSED [ 7%] tests/test_fields.py::TestEmpty::test_default PASSED [ 7%] tests/test_fields.py::TestSource::test_source PASSED [ 7%] tests/test_fields.py::TestSource::test_redundant_source PASSED [ 7%] tests/test_fields.py::TestSource::test_callable_source PASSED [ 7%] tests/test_fields.py::TestSource::test_callable_source_raises PASSED [ 7%] tests/test_fields.py::TestSource::test_builtin_callable_source_raises PASSED [ 8%] tests/test_fields.py::TestReadOnly::test_writable_fields PASSED [ 8%] tests/test_fields.py::TestReadOnly::test_validate_read_only PASSED [ 8%] tests/test_fields.py::TestReadOnly::test_serialize_read_only PASSED [ 8%] tests/test_fields.py::TestWriteOnly::test_validate_write_only PASSED [ 8%] tests/test_fields.py::TestWriteOnly::test_serialize_write_only PASSED [ 8%] tests/test_fields.py::TestInitial::test_initial PASSED [ 8%] tests/test_fields.py::TestInitialWithCallable::test_initial_should_accept_callable PASSED [ 8%] tests/test_fields.py::TestLabel::test_label PASSED [ 8%] tests/test_fields.py::TestInvalidErrorKey::test_invalid_error_key PASSED [ 8%] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox PASSED [ 8%] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_not_required PASSED [ 8%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_with_default PASSED [ 8%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default PASSED [ 8%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default_not_required PASSED [ 8%] tests/test_fields.py::TestHTMLInput::test_empty_html_integerfield PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_default PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_optional PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_datefield_allow_null PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null_allow_blank PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_required_false PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_only_one_input PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_uses_default PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_supports_indexed_keys PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_no_default_and_not_required PASSED [ 9%] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_posts_key_but_no_values PASSED [ 9%] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_provided PASSED [ 9%] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_not_provided_on_update PASSED [ 10%] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_callable_sets_context PASSED [ 10%] tests/test_fields.py::Test5087Regression::test_parent_binding PASSED [ 10%] tests/test_fields.py::TestBooleanField::test_valid_inputs PASSED [ 10%] tests/test_fields.py::TestBooleanField::test_invalid_inputs PASSED [ 10%] tests/test_fields.py::TestBooleanField::test_outputs PASSED [ 10%] tests/test_fields.py::TestBooleanField::test_disallow_unhashable_collection_types PASSED [ 10%] tests/test_fields.py::TestNullBooleanField::test_valid_inputs PASSED [ 10%] tests/test_fields.py::TestNullBooleanField::test_invalid_inputs PASSED [ 10%] tests/test_fields.py::TestNullBooleanField::test_outputs PASSED [ 10%] tests/test_fields.py::TestNullBooleanField::test_disallow_unhashable_collection_types PASSED [ 10%] tests/test_fields.py::TestNullableBooleanField::test_valid_inputs PASSED [ 10%] tests/test_fields.py::TestNullableBooleanField::test_invalid_inputs PASSED [ 10%] tests/test_fields.py::TestNullableBooleanField::test_outputs PASSED [ 10%] tests/test_fields.py::TestNullableBooleanField::test_disallow_unhashable_collection_types PASSED [ 11%] tests/test_fields.py::TestCharField::test_valid_inputs PASSED [ 11%] tests/test_fields.py::TestCharField::test_invalid_inputs PASSED [ 11%] tests/test_fields.py::TestCharField::test_outputs PASSED [ 11%] tests/test_fields.py::TestCharField::test_trim_whitespace_default PASSED [ 11%] tests/test_fields.py::TestCharField::test_trim_whitespace_disabled PASSED [ 11%] tests/test_fields.py::TestCharField::test_disallow_blank_with_trim_whitespace PASSED [ 11%] tests/test_fields.py::TestCharField::test_null_bytes PASSED [ 11%] tests/test_fields.py::TestCharField::test_surrogate_characters PASSED [ 11%] tests/test_fields.py::TestCharField::test_iterable_validators PASSED [ 11%] tests/test_fields.py::TestEmailField::test_valid_inputs PASSED [ 11%] tests/test_fields.py::TestEmailField::test_invalid_inputs PASSED [ 11%] tests/test_fields.py::TestEmailField::test_outputs PASSED [ 11%] tests/test_fields.py::TestRegexField::test_valid_inputs PASSED [ 11%] tests/test_fields.py::TestRegexField::test_invalid_inputs PASSED [ 12%] tests/test_fields.py::TestRegexField::test_outputs PASSED [ 12%] tests/test_fields.py::TestiCompiledRegexField::test_valid_inputs PASSED [ 12%] tests/test_fields.py::TestiCompiledRegexField::test_invalid_inputs PASSED [ 12%] tests/test_fields.py::TestiCompiledRegexField::test_outputs PASSED [ 12%] tests/test_fields.py::TestSlugField::test_valid_inputs PASSED [ 12%] tests/test_fields.py::TestSlugField::test_invalid_inputs PASSED [ 12%] tests/test_fields.py::TestSlugField::test_outputs PASSED [ 12%] tests/test_fields.py::TestSlugField::test_allow_unicode_true PASSED [ 12%] tests/test_fields.py::TestURLField::test_valid_inputs PASSED [ 12%] tests/test_fields.py::TestURLField::test_invalid_inputs PASSED [ 12%] tests/test_fields.py::TestURLField::test_outputs PASSED [ 12%] tests/test_fields.py::TestUUIDField::test_valid_inputs PASSED [ 12%] tests/test_fields.py::TestUUIDField::test_invalid_inputs PASSED [ 12%] tests/test_fields.py::TestUUIDField::test_outputs PASSED [ 13%] tests/test_fields.py::TestUUIDField::test_formats PASSED [ 13%] tests/test_fields.py::TestIPAddressField::test_valid_inputs PASSED [ 13%] tests/test_fields.py::TestIPAddressField::test_invalid_inputs PASSED [ 13%] tests/test_fields.py::TestIPAddressField::test_outputs PASSED [ 13%] tests/test_fields.py::TestIPv4AddressField::test_valid_inputs PASSED [ 13%] tests/test_fields.py::TestIPv4AddressField::test_invalid_inputs PASSED [ 13%] tests/test_fields.py::TestIPv4AddressField::test_outputs PASSED [ 13%] tests/test_fields.py::TestIPv6AddressField::test_valid_inputs PASSED [ 13%] tests/test_fields.py::TestIPv6AddressField::test_invalid_inputs PASSED [ 13%] tests/test_fields.py::TestIPv6AddressField::test_outputs PASSED [ 13%] tests/test_fields.py::TestFilePathField::test_valid_inputs PASSED [ 13%] tests/test_fields.py::TestFilePathField::test_invalid_inputs PASSED [ 13%] tests/test_fields.py::TestFilePathField::test_outputs PASSED [ 13%] tests/test_fields.py::TestIntegerField::test_valid_inputs PASSED [ 14%] tests/test_fields.py::TestIntegerField::test_invalid_inputs PASSED [ 14%] tests/test_fields.py::TestIntegerField::test_outputs PASSED [ 14%] tests/test_fields.py::TestMinMaxIntegerField::test_valid_inputs PASSED [ 14%] tests/test_fields.py::TestMinMaxIntegerField::test_invalid_inputs PASSED [ 14%] tests/test_fields.py::TestMinMaxIntegerField::test_outputs PASSED [ 14%] tests/test_fields.py::TestFloatField::test_valid_inputs PASSED [ 14%] tests/test_fields.py::TestFloatField::test_invalid_inputs PASSED [ 14%] tests/test_fields.py::TestFloatField::test_outputs PASSED [ 14%] tests/test_fields.py::TestMinMaxFloatField::test_valid_inputs PASSED [ 14%] tests/test_fields.py::TestMinMaxFloatField::test_invalid_inputs PASSED [ 14%] tests/test_fields.py::TestMinMaxFloatField::test_outputs PASSED [ 14%] tests/test_fields.py::TestDecimalField::test_valid_inputs PASSED [ 14%] tests/test_fields.py::TestDecimalField::test_invalid_inputs PASSED [ 14%] tests/test_fields.py::TestDecimalField::test_outputs PASSED [ 15%] tests/test_fields.py::TestAllowNullDecimalField::test_valid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowNullDecimalField::test_invalid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowNullDecimalField::test_outputs PASSED [ 15%] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_valid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_outputs PASSED [ 15%] tests/test_fields.py::TestMinMaxDecimalField::test_valid_inputs PASSED [ 15%] tests/test_fields.py::TestMinMaxDecimalField::test_invalid_inputs PASSED [ 15%] tests/test_fields.py::TestMinMaxDecimalField::test_outputs PASSED [ 15%] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_valid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_invalid_inputs PASSED [ 15%] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_outputs PASSED [ 15%] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_valid_inputs PASSED [ 15%] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_invalid_inputs PASSED [ 16%] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_outputs PASSED [ 16%] tests/test_fields.py::TestNoStringCoercionDecimalField::test_valid_inputs PASSED [ 16%] tests/test_fields.py::TestNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 16%] tests/test_fields.py::TestNoStringCoercionDecimalField::test_outputs PASSED [ 16%] tests/test_fields.py::TestLocalizedDecimalField::test_localize_forces_coerce_to_string PASSED [ 16%] tests/test_fields.py::TestLocalizedDecimalField::test_to_internal_value PASSED [ 16%] tests/test_fields.py::TestLocalizedDecimalField::test_to_representation PASSED [ 16%] tests/test_fields.py::TestQuantizedValueForDecimal::test_int_quantized_value_for_decimal PASSED [ 16%] tests/test_fields.py::TestQuantizedValueForDecimal::test_part_precision_string_quantized_value_for_decimal PASSED [ 16%] tests/test_fields.py::TestQuantizedValueForDecimal::test_string_quantized_value_for_decimal PASSED [ 16%] tests/test_fields.py::TestNoDecimalPlaces::test_valid_inputs PASSED [ 16%] tests/test_fields.py::TestNoDecimalPlaces::test_invalid_inputs PASSED [ 16%] tests/test_fields.py::TestNoDecimalPlaces::test_outputs PASSED [ 16%] tests/test_fields.py::TestRoundingDecimalField::test_invalid_rounding PASSED [ 16%] tests/test_fields.py::TestRoundingDecimalField::test_valid_rounding PASSED [ 17%] tests/test_fields.py::TestDateField::test_valid_inputs PASSED [ 17%] tests/test_fields.py::TestDateField::test_invalid_inputs PASSED [ 17%] tests/test_fields.py::TestDateField::test_outputs PASSED [ 17%] tests/test_fields.py::TestCustomInputFormatDateField::test_valid_inputs PASSED [ 17%] tests/test_fields.py::TestCustomInputFormatDateField::test_invalid_inputs PASSED [ 17%] tests/test_fields.py::TestCustomInputFormatDateField::test_outputs PASSED [ 17%] tests/test_fields.py::TestCustomOutputFormatDateField::test_valid_inputs PASSED [ 17%] tests/test_fields.py::TestCustomOutputFormatDateField::test_invalid_inputs PASSED [ 17%] tests/test_fields.py::TestCustomOutputFormatDateField::test_outputs PASSED [ 17%] tests/test_fields.py::TestNoOutputFormatDateField::test_valid_inputs PASSED [ 17%] tests/test_fields.py::TestNoOutputFormatDateField::test_invalid_inputs PASSED [ 17%] tests/test_fields.py::TestNoOutputFormatDateField::test_outputs PASSED [ 17%] tests/test_fields.py::TestDateTimeField::test_valid_inputs PASSED [ 17%] tests/test_fields.py::TestDateTimeField::test_invalid_inputs PASSED [ 18%] tests/test_fields.py::TestDateTimeField::test_outputs PASSED [ 18%] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_valid_inputs PASSED [ 18%] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_invalid_inputs PASSED [ 18%] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_outputs PASSED [ 18%] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_valid_inputs PASSED [ 18%] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_invalid_inputs PASSED [ 18%] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_outputs PASSED [ 18%] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_valid_inputs PASSED [ 18%] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_invalid_inputs PASSED [ 18%] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_outputs PASSED [ 18%] tests/test_fields.py::TestNaiveDateTimeField::test_valid_inputs PASSED [ 18%] tests/test_fields.py::TestNaiveDateTimeField::test_invalid_inputs PASSED [ 18%] tests/test_fields.py::TestNaiveDateTimeField::test_outputs PASSED [ 18%] tests/test_fields.py::TestTZWithDateTimeField::test_valid_inputs PASSED [ 19%] tests/test_fields.py::TestTZWithDateTimeField::test_invalid_inputs PASSED [ 19%] tests/test_fields.py::TestTZWithDateTimeField::test_outputs PASSED [ 19%] tests/test_fields.py::TestDefaultTZDateTimeField::test_current_timezone PASSED [ 19%] tests/test_fields.py::TestDefaultTZDateTimeField::test_default_timezone PASSED [ 19%] tests/test_fields.py::TestCustomTimezoneForDateTimeField::test_should_render_date_time_in_default_timezone PASSED [ 19%] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_valid_inputs PASSED [ 19%] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_invalid_inputs PASSED [ 19%] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_outputs PASSED [ 19%] tests/test_fields.py::TestTimeField::test_valid_inputs PASSED [ 19%] tests/test_fields.py::TestTimeField::test_invalid_inputs PASSED [ 19%] tests/test_fields.py::TestTimeField::test_outputs PASSED [ 19%] tests/test_fields.py::TestCustomInputFormatTimeField::test_valid_inputs PASSED [ 19%] tests/test_fields.py::TestCustomInputFormatTimeField::test_invalid_inputs PASSED [ 19%] tests/test_fields.py::TestCustomInputFormatTimeField::test_outputs PASSED [ 20%] tests/test_fields.py::TestCustomOutputFormatTimeField::test_valid_inputs PASSED [ 20%] tests/test_fields.py::TestCustomOutputFormatTimeField::test_invalid_inputs PASSED [ 20%] tests/test_fields.py::TestCustomOutputFormatTimeField::test_outputs PASSED [ 20%] tests/test_fields.py::TestNoOutputFormatTimeField::test_valid_inputs PASSED [ 20%] tests/test_fields.py::TestNoOutputFormatTimeField::test_invalid_inputs PASSED [ 20%] tests/test_fields.py::TestNoOutputFormatTimeField::test_outputs PASSED [ 20%] tests/test_fields.py::TestMinMaxDurationField::test_valid_inputs PASSED [ 20%] tests/test_fields.py::TestMinMaxDurationField::test_invalid_inputs PASSED [ 20%] tests/test_fields.py::TestMinMaxDurationField::test_outputs PASSED [ 20%] tests/test_fields.py::TestDurationField::test_valid_inputs PASSED [ 20%] tests/test_fields.py::TestDurationField::test_invalid_inputs PASSED [ 20%] tests/test_fields.py::TestDurationField::test_outputs PASSED [ 20%] tests/test_fields.py::TestChoiceField::test_valid_inputs PASSED [ 20%] tests/test_fields.py::TestChoiceField::test_invalid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceField::test_outputs PASSED [ 21%] tests/test_fields.py::TestChoiceField::test_allow_blank PASSED [ 21%] tests/test_fields.py::TestChoiceField::test_allow_null PASSED [ 21%] tests/test_fields.py::TestChoiceField::test_iter_options PASSED [ 21%] tests/test_fields.py::TestChoiceField::test_edit_choices PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithType::test_valid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithType::test_invalid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithType::test_outputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithListChoices::test_valid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithListChoices::test_invalid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithListChoices::test_outputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_valid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_invalid_inputs PASSED [ 21%] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_outputs PASSED [ 22%] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_valid_inputs PASSED [ 22%] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_invalid_inputs PASSED [ 22%] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_outputs PASSED [ 22%] tests/test_fields.py::TestMultipleChoiceField::test_valid_inputs PASSED [ 22%] tests/test_fields.py::TestMultipleChoiceField::test_invalid_inputs PASSED [ 22%] tests/test_fields.py::TestMultipleChoiceField::test_outputs PASSED [ 22%] tests/test_fields.py::TestMultipleChoiceField::test_against_partial_and_full_updates PASSED [ 22%] tests/test_fields.py::TestEmptyMultipleChoiceField::test_valid_inputs PASSED [ 22%] tests/test_fields.py::TestEmptyMultipleChoiceField::test_invalid_inputs PASSED [ 22%] tests/test_fields.py::TestEmptyMultipleChoiceField::test_outputs PASSED [ 22%] tests/test_fields.py::TestFileField::test_valid_inputs PASSED [ 22%] tests/test_fields.py::TestFileField::test_invalid_inputs PASSED [ 22%] tests/test_fields.py::TestFileField::test_outputs PASSED [ 22%] tests/test_fields.py::TestFieldFieldWithName::test_valid_inputs PASSED [ 23%] tests/test_fields.py::TestFieldFieldWithName::test_invalid_inputs PASSED [ 23%] tests/test_fields.py::TestFieldFieldWithName::test_outputs PASSED [ 23%] tests/test_fields.py::TestInvalidImageField::test_valid_inputs PASSED [ 23%] tests/test_fields.py::TestInvalidImageField::test_invalid_inputs PASSED [ 23%] tests/test_fields.py::TestInvalidImageField::test_outputs PASSED [ 23%] tests/test_fields.py::TestValidImageField::test_valid_inputs PASSED [ 23%] tests/test_fields.py::TestValidImageField::test_invalid_inputs PASSED [ 23%] tests/test_fields.py::TestValidImageField::test_outputs PASSED [ 23%] tests/test_fields.py::TestListField::test_valid_inputs PASSED [ 23%] tests/test_fields.py::TestListField::test_invalid_inputs PASSED [ 23%] tests/test_fields.py::TestListField::test_outputs PASSED [ 23%] tests/test_fields.py::TestListField::test_no_source_on_child PASSED [ 23%] tests/test_fields.py::TestListField::test_collection_types_are_invalid_input PASSED [ 23%] tests/test_fields.py::TestListField::test_constructor_misuse_raises PASSED [ 24%] tests/test_fields.py::TestNestedListField::test_valid_inputs PASSED [ 24%] tests/test_fields.py::TestNestedListField::test_invalid_inputs PASSED [ 24%] tests/test_fields.py::TestNestedListField::test_outputs PASSED [ 24%] tests/test_fields.py::TestEmptyListField::test_valid_inputs PASSED [ 24%] tests/test_fields.py::TestEmptyListField::test_invalid_inputs PASSED [ 24%] tests/test_fields.py::TestEmptyListField::test_outputs PASSED [ 24%] tests/test_fields.py::TestListFieldLengthLimit::test_valid_inputs PASSED [ 24%] tests/test_fields.py::TestListFieldLengthLimit::test_invalid_inputs PASSED [ 24%] tests/test_fields.py::TestListFieldLengthLimit::test_outputs PASSED [ 24%] tests/test_fields.py::TestUnvalidatedListField::test_valid_inputs PASSED [ 24%] tests/test_fields.py::TestUnvalidatedListField::test_invalid_inputs PASSED [ 24%] tests/test_fields.py::TestUnvalidatedListField::test_outputs PASSED [ 24%] tests/test_fields.py::TestDictField::test_valid_inputs PASSED [ 24%] tests/test_fields.py::TestDictField::test_invalid_inputs PASSED [ 25%] tests/test_fields.py::TestDictField::test_outputs PASSED [ 25%] tests/test_fields.py::TestDictField::test_no_source_on_child PASSED [ 25%] tests/test_fields.py::TestDictField::test_allow_null PASSED [ 25%] tests/test_fields.py::TestDictField::test_allow_empty_disallowed PASSED [ 25%] tests/test_fields.py::TestNestedDictField::test_valid_inputs PASSED [ 25%] tests/test_fields.py::TestNestedDictField::test_invalid_inputs PASSED [ 25%] tests/test_fields.py::TestNestedDictField::test_outputs PASSED [ 25%] tests/test_fields.py::TestDictFieldWithNullChild::test_valid_inputs PASSED [ 25%] tests/test_fields.py::TestDictFieldWithNullChild::test_invalid_inputs PASSED [ 25%] tests/test_fields.py::TestDictFieldWithNullChild::test_outputs PASSED [ 25%] tests/test_fields.py::TestUnvalidatedDictField::test_valid_inputs PASSED [ 25%] tests/test_fields.py::TestUnvalidatedDictField::test_invalid_inputs PASSED [ 25%] tests/test_fields.py::TestUnvalidatedDictField::test_outputs PASSED [ 25%] tests/test_fields.py::TestHStoreField::test_valid_inputs PASSED [ 25%] tests/test_fields.py::TestHStoreField::test_invalid_inputs PASSED [ 26%] tests/test_fields.py::TestHStoreField::test_outputs PASSED [ 26%] tests/test_fields.py::TestHStoreField::test_child_is_charfield PASSED [ 26%] tests/test_fields.py::TestHStoreField::test_no_source_on_child PASSED [ 26%] tests/test_fields.py::TestHStoreField::test_allow_null PASSED [ 26%] tests/test_fields.py::TestJSONField::test_valid_inputs PASSED [ 26%] tests/test_fields.py::TestJSONField::test_invalid_inputs PASSED [ 26%] tests/test_fields.py::TestJSONField::test_outputs PASSED [ 26%] tests/test_fields.py::TestJSONField::test_html_input_as_json_string PASSED [ 26%] tests/test_fields.py::TestBinaryJSONField::test_valid_inputs PASSED [ 26%] tests/test_fields.py::TestBinaryJSONField::test_invalid_inputs PASSED [ 26%] tests/test_fields.py::TestBinaryJSONField::test_outputs PASSED [ 26%] tests/test_fields.py::TestFileFieldContext::test_fully_qualified_when_request_in_context PASSED [ 26%] tests/test_fields.py::TestSerializerMethodField::test_serializer_method_field PASSED [ 26%] tests/test_fields.py::TestSerializerMethodField::test_redundant_method_name PASSED [ 27%] tests/test_fields.py::TestModelField::test_max_length_init PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[False] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[True] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[False] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[True] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-None] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-exc_code] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-None] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-exc_code] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[None] PASSED [ 27%] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[exc_code] PASSED [ 27%] tests/test_filters.py::BaseFilterTests::test_filter_queryset_raises_error PASSED [ 27%] tests/test_filters.py::BaseFilterTests::test_get_schema_fields_checks_for_coreapi SKIPPED [ 27%] tests/test_filters.py::SearchFilterTests::test_exact_search FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_regexp_search FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search_returns_same_queryset_if_no_search_fields_or_terms_provided FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param FAILED [ 28%] tests/test_filters.py::SearchFilterTests::test_startswith_search FAILED [ 28%] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct PASSED [ 28%] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct_restores_meta_for_each_field PASSED [ 28%] tests/test_filters.py::SearchFilterM2MTests::test_m2m_search FAILED [ 28%] tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct FAILED [ 28%] tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions ERROR [ 28%] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields ERROR [ 29%] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field ERROR [ 29%] tests/test_filters.py::OrderingFilterTests::test_default_ordering FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_get_template_context FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields FAILED [ 29%] tests/test_filters.py::OrderingFilterTests::test_reverse_ordering FAILED [ 30%] tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields FAILED [ 30%] tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields FAILED [ 30%] tests/test_generics.py::TestRootView::test_delete_root_view FAILED [ 30%] tests/test_generics.py::TestRootView::test_get_root_view FAILED [ 30%] tests/test_generics.py::TestRootView::test_head_root_view FAILED [ 30%] tests/test_generics.py::TestRootView::test_post_cannot_set_id FAILED [ 30%] tests/test_generics.py::TestRootView::test_post_error_root_view FAILED [ 30%] tests/test_generics.py::TestRootView::test_post_root_view FAILED [ 30%] tests/test_generics.py::TestRootView::test_put_root_view FAILED [ 30%] tests/test_generics.py::TestInstanceView::test_delete_instance_view FAILED [ 30%] tests/test_generics.py::TestInstanceView::test_get_instance_view FAILED [ 30%] tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg FAILED [ 30%] tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object FAILED [ 30%] tests/test_generics.py::TestInstanceView::test_patch_instance_view FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_post_instance_view FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_put_cannot_set_id FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_put_error_instance_view FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_put_instance_view FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance FAILED [ 31%] tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance FAILED [ 31%] tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view FAILED [ 31%] tests/test_generics.py::TestCreateModelWithAutoNowAddField::test_create_model_with_auto_now_add_field FAILED [ 31%] tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api FAILED [ 31%] tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api FAILED [ 31%] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_filters_out_name_with_filter_backend FAILED [ 31%] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it FAILED [ 31%] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_by_name_with_filter_backend FAILED [ 31%] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_out_all_models_with_exclusive_filter_backend FAILED [ 32%] tests/test_generics.py::TestGuardedQueryset::test_guarded_queryset PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_create_api_view_post PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_destroy_api_view_delete PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_delete PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_get PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_get PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_patch PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_put PASSED [ 32%] tests/test_generics.py::ApiViewsTests::test_update_api_view_partial_update PASSED [ 32%] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_invalid_string_for_uuid FAILED [ 32%] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_valid_uuid FAILED [ 32%] tests/test_generics.py::TestSerializer::test_given_context_not_overridden PASSED [ 32%] tests/test_generics.py::TestSerializer::test_serializer_class_not_provided PASSED [ 32%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_raises_error_if_no_template_found PASSED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_own_template_name PASSED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_view_template_name PASSED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view FAILED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view FAILED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view FAILED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template FAILED [ 33%] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template FAILED [ 33%] tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names FAILED [ 33%] tests/test_metadata.py::TestMetadata::test_determine_metadata_abstract_method_raises_proper_error PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_metadata PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_none_metadata PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_actions PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_global_permissions PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_object_permissions PASSED [ 33%] tests/test_metadata.py::TestMetadata::test_bug_2455_clone_request PASSED [ 34%] tests/test_metadata.py::TestMetadata::test_bug_2477_clone_request PASSED [ 34%] tests/test_metadata.py::TestMetadata::test_dont_show_hidden_fields PASSED [ 34%] tests/test_metadata.py::TestMetadata::test_list_serializer_metadata_returns_info_about_fields_of_child_serializer PASSED [ 34%] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_null_boolean_field_info_type PASSED [ 34%] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices FAILED [ 34%] tests/test_metadata.py::TestModelSerializerMetadata::test_read_only_primary_key_related_field PASSED [ 34%] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_request_post_when_processing_response PASSED [ 34%] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_user_when_processing_response FAILED [ 34%] tests/test_model_serializer.py::TestModelSerializer::test_abstract_model PASSED [ 34%] tests/test_model_serializer.py::TestModelSerializer::test_create_method PASSED [ 34%] tests/test_model_serializer.py::TestRegularFieldMappings::test_choices_with_nonstandard_args PASSED [ 34%] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs PASSED [ 34%] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs_required PASSED [ 34%] tests/test_model_serializer.py::TestRegularFieldMappings::test_field_options PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_invalid_field PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_method_field PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_field PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_superclass_field PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_nullable_boolean_field_choices PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_pk_fields PASSED [ 35%] tests/test_model_serializer.py::TestRegularFieldMappings::test_regular_fields PASSED [ 35%] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field PASSED [ 35%] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field_with_validators PASSED [ 35%] tests/test_model_serializer.py::TestGenericIPAddressFieldValidation::test_ip_address_validation PASSED [ 35%] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_array_field SKIPPED [ 35%] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_hstore_field SKIPPED [ 35%] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_json_field SKIPPED [ 35%] tests/test_model_serializer.py::TestDjangoJSONFieldMapping::test_json_field PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_hyperlinked_relations PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations_starred_source PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_relations PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_unique_together_relations PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_relations PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_foreign_key PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_many_to_many PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_one_to_one PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_through PASSED [ 36%] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value FAILED [ 36%] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value FAILED [ 36%] tests/test_model_serializer.py::TestIntegration::test_pk_create FAILED [ 36%] tests/test_model_serializer.py::TestIntegration::test_pk_retrival FAILED [ 37%] tests/test_model_serializer.py::TestIntegration::test_pk_update FAILED [ 37%] tests/test_model_serializer.py::TestBulkCreate::test_bulk_create FAILED [ 37%] tests/test_model_serializer.py::TestSerializerMetaClass::test_declared_fields_with_exclude_option PASSED [ 37%] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_exclude_option PASSED [ 37%] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_and_exclude_options PASSED [ 37%] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_option PASSED [ 37%] tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all FAILED [ 37%] tests/test_model_serializer.py::TestDecimalFieldMappings::test_decimal_field_has_decimal_validator PASSED [ 37%] tests/test_model_serializer.py::TestDecimalFieldMappings::test_max_value_is_passed PASSED [ 37%] tests/test_model_serializer.py::TestDecimalFieldMappings::test_min_value_is_passed PASSED [ 37%] tests/test_model_serializer.py::TestMetaInheritance::test_extra_kwargs_not_altered PASSED [ 37%] tests/test_model_serializer.py::TestModelFieldValues::test_model_field PASSED [ 37%] tests/test_model_serializer.py::TestUniquenessOverride::test_required_not_overwritten PASSED [ 37%] tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer FAILED [ 38%] tests/test_model_serializer.py::Issue3674Test::test_nonPK_foreignkey_model_serializer PASSED [ 38%] tests/test_model_serializer.py::Issue4897TestCase::test_should_assert_if_writing_readonly_fields FAILED [ 38%] tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field FAILED [ 38%] tests/test_model_serializer.py::TestFieldSource::test_named_field_source PASSED [ 38%] tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk FAILED [ 38%] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager FAILED [ 38%] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager_error_message PASSED [ 38%] tests/test_model_serializer.py::Issue6751Test::test_model_serializer_save_m2m_after_instance FAILED [ 38%] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_data_is_valid_without_parent_ptr PASSED [ 38%] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 38%] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_onetoone_primary_key_model_fields_as_expected FAILED [ 38%] tests/test_negotiation.py::TestAcceptedMediaType::test_client_overspecifies_accept_use_client PASSED [ 38%] tests/test_negotiation.py::TestAcceptedMediaType::test_client_specifies_parameter PASSED [ 38%] tests/test_negotiation.py::TestAcceptedMediaType::test_client_underspecifies_accept_use_renderer PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_client_without_accept_use_renderer PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_match_is_false_if_main_types_not_match PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_match_is_false_if_keys_not_match PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_precedence_with_wildcard_subtype PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_string_representation PASSED [ 39%] tests/test_negotiation.py::TestAcceptedMediaType::test_raise_error_if_no_suitable_renderers_found PASSED [ 39%] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_parser_method PASSED [ 39%] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_renderer_method PASSED [ 39%] tests/test_one_to_one_with_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 39%] tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated FAILED [ 39%] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size FAILED [ 39%] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum FAILED [ 39%] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero FAILED [ 39%] tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved FAILED [ 40%] tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved FAILED [ 40%] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_zero_page PASSED [ 40%] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_invalid_page PASSED [ 40%] tests/test_pagination.py::TestPaginationDisabledIntegration::test_unpaginated_list PASSED [ 40%] tests/test_pagination.py::TestPageNumberPagination::test_no_page_number FAILED [ 40%] tests/test_pagination.py::TestPageNumberPagination::test_second_page FAILED [ 40%] tests/test_pagination.py::TestPageNumberPagination::test_last_page FAILED [ 40%] tests/test_pagination.py::TestPageNumberPagination::test_invalid_page PASSED [ 40%] tests/test_pagination.py::TestPageNumberPagination::test_get_paginated_response_schema PASSED [ 40%] tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number FAILED [ 40%] tests/test_pagination.py::TestPageNumberPaginationOverride::test_invalid_page PASSED [ 40%] tests/test_pagination.py::TestLimitOffset::test_no_offset FAILED [ 40%] tests/test_pagination.py::TestLimitOffset::test_pagination_not_applied_if_limit_or_default_limit_not_set PASSED [ 40%] tests/test_pagination.py::TestLimitOffset::test_single_offset FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_first_offset FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_middle_offset FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_ending_offset FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_erronous_offset FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_invalid_offset PASSED [ 41%] tests/test_pagination.py::TestLimitOffset::test_invalid_limit FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_zero_limit FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_max_limit FAILED [ 41%] tests/test_pagination.py::TestLimitOffset::test_get_paginated_response_schema PASSED [ 41%] tests/test_pagination.py::TestCursorPagination::test_invalid_cursor FAILED [ 41%] tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter PASSED [ 41%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination FAILED [ 41%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward FAILED [ 41%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse FAILED [ 41%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size FAILED [ 42%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit FAILED [ 42%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero FAILED [ 42%] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative FAILED [ 42%] tests/test_pagination.py::TestCursorPagination::test_get_paginated_response_schema PASSED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_over_limit FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor FAILED [ 42%] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter FAILED [ 43%] tests/test_pagination.py::test_get_displayed_page_numbers PASSED [ 43%] tests/test_parsers.py::TestFormParser::test_parse PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_get_encoded_filename PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_get_filename PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_parse PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_large_file PASSED [ 43%] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_multiple_upload_handlers PASSED [ 43%] tests/test_parsers.py::TestJSONParser::test_float_strictness PASSED [ 43%] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method PASSED [ 43%] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method_with_json_parser PASSED [ 43%] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_put_method PASSED [ 43%] tests/test_parsers.py::TestPOSTAccessed::test_request_read_before_parsing PASSED [ 43%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_api_root_view_discard_default_django_model_permission FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly FAILED [ 44%] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions FAILED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_delete_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_get_queryset_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_list_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_update_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_delete_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_method_not_allowed SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_read_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions SKIPPED [ 45%] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions_non_existing SKIPPED [ 45%] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied FAILED [ 45%] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object FAILED [ 45%] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object_with_custom_detail FAILED [ 45%] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_and_false FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_and_true FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_not_false FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_not_true FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_or_false FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_or_true FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation FAILED [ 46%] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation FAILED [ 46%] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_excluding_instance_from_original_queryset FAILED [ 47%] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates FAILED [ 47%] tests/test_relations.py::TestStringRelatedField::test_string_related_representation PASSED [ 47%] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_no_settings PASSED [ 47%] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff PASSED [ 47%] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff_none PASSED [ 47%] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_kwargs_cutoff PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_explicit_many_false PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_bool PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_invalid_type PASSED [ 47%] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_representation PASSED [ 47%] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 47%] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 48%] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_representation PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_internal_type_error PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_does_not_exist PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_exists PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_encoded_exists PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_space_encoded_exists PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_type_error PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_value_error PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_representation_unsaved_object_with_non_nullable_pk PASSED [ 48%] tests/test_relations.py::TestHyperlinkedRelatedField::test_serialize_empty_relationship_attribute PASSED [ 48%] tests/test_relations.py::TestHyperlinkedIdentityField::test_improperly_configured PASSED [ 48%] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation PASSED [ 48%] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_unsaved_object PASSED [ 48%] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_with_format PASSED [ 49%] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation PASSED [ 49%] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation_with_format PASSED [ 49%] tests/test_relations.py::TestSlugRelatedField::test_overriding_get_queryset PASSED [ 49%] tests/test_relations.py::TestSlugRelatedField::test_representation PASSED [ 49%] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_does_not_exist PASSED [ 49%] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_exists PASSED [ 49%] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_invalid_type PASSED [ 49%] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_full PASSED [ 49%] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_partial PASSED [ 49%] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_full PASSED [ 49%] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_partial PASSED [ 49%] tests/test_relations.py::TestHyperlink::test_can_be_pickled PASSED [ 49%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create FAILED [ 49%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update FAILED [ 50%] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 51%] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 51%] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 51%] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 51%] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 51%] tests/test_relations_hyperlink.py::HyperlinkedNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 51%] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update FAILED [ 51%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_Q_limited_choices FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 52%] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update FAILED [ 53%] tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source FAILED [ 53%] tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_null_uuid_foreign_key_serializes_as_none FAILED [ 53%] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_nullable_uuid_foreign_key_is_valid_when_none FAILED [ 53%] tests/test_relations_pk.py::PKNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 53%] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key FAILED [ 53%] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_does_not_exist FAILED [ 53%] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_no_duplicates FAILED [ 53%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 54%] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update FAILED [ 54%] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 54%] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 54%] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 54%] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 54%] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 55%] tests/test_renderers.py::BasicRendererTests::test_expected_results PASSED [ 55%] tests/test_renderers.py::DocumentingRendererTests::test_only_permitted_forms_are_displayed PASSED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_204_no_content_responses_have_no_content_type_set FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_parse_error_renderers_browsable_api FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_default_case FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 55%] tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status FAILED [ 56%] tests/test_renderers.py::BaseRendererTests::test_render_raise_error PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_float_strictness PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_render_dict_abc_obj PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_render_lazy_strings PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_render_obj_with_getitem PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values FAILED [ 56%] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list FAILED [ 56%] tests/test_renderers.py::JSONRendererTests::test_with_content_type_args PASSED [ 56%] tests/test_renderers.py::JSONRendererTests::test_without_content_type_args PASSED [ 56%] tests/test_renderers.py::UnicodeJSONRendererTests::test_proper_encoding PASSED [ 56%] tests/test_renderers.py::UnicodeJSONRendererTests::test_u2028_u2029 PASSED [ 56%] tests/test_renderers.py::AsciiJSONRendererTests::test_proper_encoding PASSED [ 56%] tests/test_renderers.py::CacheRenderTest::test_get_caching FAILED [ 56%] tests/test_renderers.py::CacheRenderTest::test_head_caching FAILED [ 57%] tests/test_renderers.py::TestJSONIndentationStyles::test_indented PASSED [ 57%] tests/test_renderers.py::TestJSONIndentationStyles::test_compact PASSED [ 57%] tests/test_renderers.py::TestJSONIndentationStyles::test_long_form PASSED [ 57%] tests/test_renderers.py::TestHiddenFieldHTMLFormRenderer::test_hidden_field_rendering PASSED [ 57%] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_default_args PASSED [ 57%] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_provided_args PASSED [ 57%] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_initial_option PASSED [ 57%] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_selected_option PASSED [ 57%] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_integer_option_ids PASSED [ 57%] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_string_option_ids PASSED [ 57%] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer PASSED [ 57%] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer_with_exception PASSED [ 57%] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown FAILED [ 57%] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown_not_authed PASSED [ 58%] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_description_returns_empty_string_for_401_and_403_statuses PASSED [ 58%] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_filter_form_returns_none_if_data_is_not_list_instance PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_get_context_result_urls PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_get_result_url PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_get_result_url_no_result PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_render_dict PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_items_key PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_iteritems_key PASSED [ 58%] tests/test_renderers.py::AdminRendererTests::test_render_when_resource_created PASSED [ 58%] tests/test_renderers.py::TestDocumentationRenderer::test_document_with_link_named_data SKIPPED [ 58%] tests/test_renderers.py::TestDocumentationRenderer::test_shell_code_example_rendering SKIPPED [ 58%] tests/test_renderers.py::TestSchemaJSRenderer::test_schemajs_output SKIPPED [ 58%] tests/test_request.py::TestInitializer::test_request_type PASSED [ 58%] tests/test_request.py::TestContentParsing::test_request_DATA_with_form_content PASSED [ 58%] tests/test_request.py::TestContentParsing::test_request_DATA_with_text_content PASSED [ 59%] tests/test_request.py::TestContentParsing::test_request_POST_with_files PASSED [ 59%] tests/test_request.py::TestContentParsing::test_request_POST_with_form_content PASSED [ 59%] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_form_content_PUT PASSED [ 59%] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_GET PASSED [ 59%] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_HEAD PASSED [ 59%] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_non_form_content_PUT PASSED [ 59%] tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end FAILED [ 59%] tests/test_request.py::TestContentParsingWithAuthentication::test_user_logged_in_authentication_has_POST_when_not_logged_in FAILED [ 59%] tests/test_request.py::TestUserSetter::test_calling_user_fails_when_attribute_error_is_raised FAILED [ 59%] tests/test_request.py::TestUserSetter::test_logged_in_user_is_set_on_wrapped_request FAILED [ 59%] tests/test_request.py::TestUserSetter::test_user_can_be_set FAILED [ 59%] tests/test_request.py::TestUserSetter::test_user_can_login FAILED [ 59%] tests/test_request.py::TestUserSetter::test_user_can_logout FAILED [ 59%] tests/test_request.py::TestAuthSetter::test_auth_can_be_set PASSED [ 60%] tests/test_request.py::TestSecure::test_default_secure_false PASSED [ 60%] tests/test_request.py::TestSecure::test_default_secure_true PASSED [ 60%] tests/test_request.py::TestHttpRequest::test_attribute_access_proxy PASSED [ 60%] tests/test_request.py::TestHttpRequest::test_duplicate_request_form_data_access FAILED [ 60%] tests/test_request.py::TestHttpRequest::test_duplicate_request_stream_parsing_exception FAILED [ 60%] tests/test_request.py::TestHttpRequest::test_exception_proxy PASSED [ 60%] tests/test_request.py::TestHttpRequest::test_repr PASSED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_auth SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_get_request SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_by_kwarg SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_in_url SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_get_with_headers SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_get_with_session_headers SKIPPED [ 60%] tests/test_requests_client.py::RequestsClientTests::test_post_form_request SKIPPED [ 61%] tests/test_requests_client.py::RequestsClientTests::test_post_json_request SKIPPED [ 61%] tests/test_requests_client.py::RequestsClientTests::test_post_multipart_request SKIPPED [ 61%] tests/test_requests_client.py::RequestsClientTests::test_session SKIPPED [ 61%] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_default_case FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 61%] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 61%] tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json FAILED [ 61%] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form FAILED [ 61%] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml FAILED [ 62%] tests/test_response.py::Issue122Tests::test_html_renderer_is_first PASSED [ 62%] tests/test_response.py::Issue122Tests::test_only_html_renderer PASSED [ 62%] tests/test_response.py::Issue467Tests::test_form_has_label_and_help_text FAILED [ 62%] tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response FAILED [ 62%] tests/test_response.py::Issue807Tests::test_does_not_append_charset_by_default FAILED [ 62%] tests/test_response.py::Issue807Tests::test_form_has_label_and_help_text FAILED [ 62%] tests/test_response.py::Issue807Tests::test_if_there_is_charset_specified_on_renderer_it_gets_appended FAILED [ 62%] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme PASSED [ 62%] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme_fallback_to_default_on_error FAILED [ 62%] tests/test_reverse.py::ReverseTests::test_reversed_urls_are_fully_qualified FAILED [ 62%] tests/test_routers.py::TestSimpleRouter::test_action_routes PASSED [ 62%] tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers FAILED [ 62%] tests/test_routers.py::TestSimpleRouter::test_register_after_accessing_urls PASSED [ 62%] tests/test_routers.py::TestRootView::test_retrieve_namespaced_root FAILED [ 63%] tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root FAILED [ 63%] tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route FAILED [ 63%] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view FAILED [ 63%] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view FAILED [ 63%] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_url_encoded_detail_view_ FAILED [ 63%] tests/test_routers.py::TestLookupValueRegex::test_urls_limited_by_lookup_value_regex PASSED [ 63%] tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route FAILED [ 63%] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_encoded_kwarg_detail_view FAILED [ 63%] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view FAILED [ 63%] tests/test_routers.py::TestTrailingSlashIncluded::test_urls_have_trailing_slash_by_default PASSED [ 63%] tests/test_routers.py::TestTrailingSlashRemoved::test_urls_can_have_trailing_slash_removed PASSED [ 63%] tests/test_routers.py::TestNameableRoot::test_router_has_custom_name PASSED [ 63%] tests/test_routers.py::TestActionKeywordArgs::test_action_kwargs PASSED [ 63%] tests/test_routers.py::TestActionAppliedToExistingRoute::test_exception_raised_when_action_applied_to_existing_route PASSED [ 64%] tests/test_routers.py::TestDynamicListAndDetailRouter::test_inherited_list_and_detail_route_decorators PASSED [ 64%] tests/test_routers.py::TestDynamicListAndDetailRouter::test_list_and_detail_route_decorators PASSED [ 64%] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail FAILED [ 64%] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list FAILED [ 64%] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail FAILED [ 64%] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list FAILED [ 64%] tests/test_routers.py::TestViewInitkwargs::test_basename PASSED [ 64%] tests/test_routers.py::TestViewInitkwargs::test_detail PASSED [ 64%] tests/test_routers.py::TestViewInitkwargs::test_suffix PASSED [ 64%] tests/test_serializer.py::TestFieldImports::test_fields PASSED [ 64%] tests/test_serializer.py::TestFieldImports::test_relations PASSED [ 64%] tests/test_serializer.py::TestSerializer::test_valid_serializer PASSED [ 64%] tests/test_serializer.py::TestSerializer::test_invalid_serializer PASSED [ 64%] tests/test_serializer.py::TestSerializer::test_invalid_datatype PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_partial_validation PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_empty_serializer PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_missing_attribute_during_serialization PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_data_access_before_save_raises_error PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_validate_none_data PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_serialize_chainmap PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_serialize_custom_mapping PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_custom_to_internal_value PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_iterable_validators PASSED [ 65%] tests/test_serializer.py::TestSerializer::test_serializer_is_subscriptable PASSED [ 65%] tests/test_serializer.py::TestValidateMethod::test_non_field_error_validate_method PASSED [ 65%] tests/test_serializer.py::TestValidateMethod::test_field_error_validate_method PASSED [ 65%] tests/test_serializer.py::TestBaseSerializer::test_abstract_methods_raise_proper_errors PASSED [ 65%] tests/test_serializer.py::TestBaseSerializer::test_access_to_data_attribute_before_validation_raises_error PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_access_to_errors_attribute_before_validation_raises_error PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_access_to_validated_data_attribute_before_validation_raises_error PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_serialize_instance PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_serialize_list PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_validate_data PASSED [ 66%] tests/test_serializer.py::TestBaseSerializer::test_validate_list PASSED [ 66%] tests/test_serializer.py::TestStarredSource::test_nested_validate PASSED [ 66%] tests/test_serializer.py::TestStarredSource::test_nested_null_validate PASSED [ 66%] tests/test_serializer.py::TestStarredSource::test_nested_serialize PASSED [ 66%] tests/test_serializer.py::TestStarredSource::test_field_validate PASSED [ 66%] tests/test_serializer.py::TestStarredSource::test_field_null_validate PASSED [ 66%] tests/test_serializer.py::TestIncorrectlyConfigured::test_incorrect_field_name PASSED [ 66%] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_dict PASSED [ 66%] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_object PASSED [ 66%] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_dict PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_object PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_dict PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_object PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_for_dotted_source PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_for_multiple_dotted_source PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_for_nested_serializer PASSED [ 67%] tests/test_serializer.py::TestDefaultOutput::test_default_for_allow_null PASSED [ 67%] tests/test_serializer.py::TestCacheSerializerData::test_cache_serializer_data PASSED [ 67%] tests/test_serializer.py::TestDefaultInclusions::test_default_should_included_on_create PASSED [ 67%] tests/test_serializer.py::TestDefaultInclusions::test_default_should_be_included_on_update PASSED [ 67%] tests/test_serializer.py::TestDefaultInclusions::test_default_should_not_be_included_on_partial_update PASSED [ 67%] tests/test_serializer.py::TestSerializerValidationWithCompiledRegexField::test_validation_success PASSED [ 67%] tests/test_serializer.py::Test2555Regression::test_serializer_context PASSED [ 67%] tests/test_serializer.py::Test4606Regression::test_4606_regression PASSED [ 68%] tests/test_serializer.py::TestDeclaredFieldInheritance::test_declared_field_disabling PASSED [ 68%] tests/test_serializer.py::TestDeclaredFieldInheritance::test_meta_field_disabling PASSED [ 68%] tests/test_serializer.py::TestDeclaredFieldInheritance::test_multiple_inheritance PASSED [ 68%] tests/test_serializer.py::TestDeclaredFieldInheritance::test_field_ordering PASSED [ 68%] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_errors PASSED [ 68%] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_success PASSED [ 68%] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_list_datatype PASSED [ 68%] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_datatype PASSED [ 68%] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_object PASSED [ 68%] tests/test_serializer_lists.py::TestListSerializer::test_validate PASSED [ 68%] tests/test_serializer_lists.py::TestListSerializer::test_validate_html_input PASSED [ 68%] tests/test_serializer_lists.py::TestListSerializer::test_list_serializer_is_subscriptable PASSED [ 68%] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate PASSED [ 68%] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_create PASSED [ 69%] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_serialize PASSED [ 69%] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate_html_input PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializer::test_create PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializer::test_serialize PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate_html_input PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[False] PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[True] PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[False] PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[True] PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate PASSED [ 69%] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate_html_input PASSED [ 69%] tests/test_serializer_lists.py::TestListSerializerClass::test_list_serializer_class_validate PASSED [ 69%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_listfield PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_multiplechoice PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_true PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_true PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_false PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_false PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_true PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_udate_as_field_allow_empty_true PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_false PASSED [ 70%] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_as_field_allow_empty_false PASSED [ 70%] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_json PASSED [ 70%] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_multipart PASSED [ 70%] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_two_items PASSED [ 70%] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_four_items PASSED [ 70%] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_six_items PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_validate PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_empty PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_no_data PASSED [ 71%] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_json_validate PASSED [ 71%] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_multipart_validate PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_allowed_if_allow_null_is_set PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_is_not_allowed_if_allow_null_is_not_set PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_run_the_field_validation_even_if_the_field_is_null PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_allowed_if_allow_empty_is_set PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_not_allowed_if_allow_empty_is_set_to_false PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_json PASSED [ 71%] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_multipart PASSED [ 71%] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_json_validate PASSED [ 71%] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_multipart_validate PASSED [ 72%] tests/test_serializer_nested.py::TestNestedWriteErrors::test_dotted_source_field_error PASSED [ 72%] tests/test_serializer_nested.py::TestNestedWriteErrors::test_nested_serializer_error PASSED [ 72%] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_nested_serializer_create_and_update SKIPPED [ 72%] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_dotted_source_field_create_and_update SKIPPED [ 72%] tests/test_settings.py::TestSettings::test_compatibility_with_override_settings PASSED [ 72%] tests/test_settings.py::TestSettings::test_import_error_message_maintained PASSED [ 72%] tests/test_settings.py::TestSettings::test_warning_raised_on_removed_setting PASSED [ 72%] tests/test_settings.py::TestSettingTypes::test_settings_consistently_coerced_to_list PASSED [ 72%] tests/test_status.py::TestStatus::test_status_categories PASSED [ 72%] tests/test_templates.py::test_base_template_with_context PASSED [ 72%] tests/test_templates.py::test_base_template_with_no_context PASSED [ 72%] tests/test_templatetags.py::TemplateTagTests::test_add_nested_class PASSED [ 72%] tests/test_templatetags.py::TemplateTagTests::test_add_query_param_with_non_latin_character PASSED [ 72%] tests/test_templatetags.py::TemplateTagTests::test_as_string_with_none PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_break_long_lines PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_boolean_or_none PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_dict PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_hyperlink PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_list PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_object PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_simple_string PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_email PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_hyperlink PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_newlines PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_format_value_table PASSED [ 73%] tests/test_templatetags.py::TemplateTagTests::test_get_pagination_html PASSED [ 73%] tests/test_templatetags.py::Issue1386Tests::test_issue_1386 PASSED [ 73%] tests/test_templatetags.py::Issue1386Tests::test_smart_urlquote_wrapper_handles_value_error PASSED [ 74%] tests/test_templatetags.py::URLizerTests::test_json_with_url PASSED [ 74%] tests/test_templatetags.py::URLizerTests::test_template_render_with_autoescape PASSED [ 74%] tests/test_templatetags.py::URLizerTests::test_template_render_with_noautoescape PASSED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_default_actions SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action_two_methods SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_multiple_nested_routes SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_multiple_resources_with_multiple_nested_routes SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_schema_with_empty_links SKIPPED [ 74%] tests/test_templatetags.py::SchemaLinksTests::test_single_action SKIPPED [ 74%] tests/test_testing.py::TestAPITestClient::test_can_logout FAILED [ 74%] tests/test_testing.py::TestAPITestClient::test_credentials FAILED [ 74%] tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default FAILED [ 74%] tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value FAILED [ 75%] tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks FAILED [ 75%] tests/test_testing.py::TestAPITestClient::test_follow_redirect FAILED [ 75%] tests/test_testing.py::TestAPITestClient::test_force_authenticate FAILED [ 75%] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions FAILED [ 75%] tests/test_testing.py::TestAPITestClient::test_invalid_multipart_data PASSED [ 75%] tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate FAILED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default FAILED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_empty_request_content_type PASSED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks FAILED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate FAILED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_invalid_format PASSED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments PASSED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments_with_unicode PASSED [ 75%] tests/test_testing.py::TestAPIRequestFactory::test_upload_file PASSED [ 75%] tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns FAILED [ 76%] tests/test_testing.py::TestExistingPatterns::test_urlpatterns FAILED [ 76%] tests/test_throttling.py::ThrottlingTests::test_minutes_fields PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_next_rate_remains_constant_if_followed PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_non_time_throttle PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_request_throttling_expires PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user FAILED [ 76%] tests/test_throttling.py::ThrottlingTests::test_request_throttling_multiple_throttles PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_requests_are_throttled PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_seconds_fields PASSED [ 76%] tests/test_throttling.py::ThrottlingTests::test_throttle_rate_change_negative PASSED [ 76%] tests/test_throttling.py::ScopedRateThrottleTests::test_get_cache_key_returns_correct_key_if_user_is_authenticated FAILED [ 76%] tests/test_throttling.py::ScopedRateThrottleTests::test_scoped_rate_throttle PASSED [ 76%] tests/test_throttling.py::ScopedRateThrottleTests::test_unscoped_view_not_throttled PASSED [ 76%] tests/test_throttling.py::IdWithXffBasicTests::test_accepts_request_under_limit PASSED [ 77%] tests/test_throttling.py::IdWithXffBasicTests::test_denies_request_over_limit PASSED [ 77%] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_one_app_proxy PASSED [ 77%] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_two_app_proxies PASSED [ 77%] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_one_proxy PASSED [ 77%] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_two_proxies PASSED [ 77%] tests/test_throttling.py::BaseThrottleTests::test_allow_request_raises_not_implemented_error PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_key_is_none PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_rate_is_none PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_get_cache_key_raises_not_implemented_error PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_get_rate_raises_error_if_scope_is_missing PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_parse_rate_returns_tuple_with_none_if_rate_not_provided PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_throttle_raises_error_if_rate_is_missing PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_correct_waiting_time_without_history PASSED [ 77%] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_none_if_there_are_no_available_requests PASSED [ 78%] tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected FAILED [ 78%] tests/test_throttling.py::AnonRateThrottleTests::test_get_cache_key_returns_correct_value PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_path PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_re_path PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args_django2 PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2 PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2_args PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls_mixed PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash PASSED [ 78%] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash_django2 PASSED [ 78%] tests/test_utils.py::BreadcrumbTests::test_broken_url_breadcrumbs_handled_gracefully PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_name_kwarg PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_suffix_kwarg PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_modelviewset_detail_action_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_modelviewset_list_action_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_modelviewset_resource_instance_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_nested_resource_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_nested_resource_instance_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_resource_instance_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_resource_instance_customname_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_resource_root_breadcrumbs PASSED [ 79%] tests/test_utils.py::BreadcrumbTests::test_root_breadcrumbs PASSED [ 79%] tests/test_utils.py::JsonFloatTests::test_dumps PASSED [ 79%] tests/test_utils.py::JsonFloatTests::test_loads PASSED [ 79%] tests/test_utils.py::NonStrictJsonFloatTests::test_dumps PASSED [ 80%] tests/test_utils.py::NonStrictJsonFloatTests::test_loads PASSED [ 80%] tests/test_utils.py::UrlsReplaceQueryParamTests::test_invalid_unicode PASSED [ 80%] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_preserved PASSED [ 80%] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_replaced PASSED [ 80%] tests/test_utils.py::UrlsRemoveQueryParamTests::test_invalid_unicode PASSED [ 80%] tests/test_utils.py::UrlsRemoveQueryParamTests::test_valid_unicode_removed PASSED [ 80%] tests/test_utils.py::LazyFormatTests::test_it_formats_correctly PASSED [ 80%] tests/test_utils.py::LazyFormatTests::test_it_formats_lazily PASSED [ 80%] tests/test_validation.py::TestNestedValidationError::test_nested_validation_error_detail PASSED [ 80%] tests/test_validation.py::TestPreSaveValidationExclusionsSerializer::test_renamed_fields_are_model_validated PASSED [ 80%] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_is_executed PASSED [ 80%] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_passing PASSED [ 80%] tests/test_validation.py::TestAvoidValidation::test_serializer_errors_has_only_invalid_data_error PASSED [ 80%] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail FAILED [ 81%] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_fails PASSED [ 81%] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_success PASSED [ 81%] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success FAILED [ 81%] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_choices PASSED [ 81%] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_mixed_choices PASSED [ 81%] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_nested_choices PASSED [ 81%] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_single_choices PASSED [ 81%] tests/test_validation.py::TestRegexSerializer::test_regex_repr PASSED [ 81%] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_class_based_view_exception_handler PASSED [ 81%] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_function_based_view_exception_handler PASSED [ 81%] tests/test_validation_error.py::TestValidationErrorWithCodes::test_class_based_view_exception_handler PASSED [ 81%] tests/test_validation_error.py::TestValidationErrorWithCodes::test_function_based_view_exception_handler PASSED [ 81%] tests/test_validation_error.py::TestValidationErrorConvertsTuplesToLists::test_validation_error_details PASSED [ 81%] tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_is_not_unique FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_is_unique FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_repr FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded FAILED [ 82%] tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_multiple_fields_with_same_source FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_do_not_ignore_validation_for_null_fields FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_filter_queryset_do_not_skip_existing_attribute FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields FAILED [ 82%] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default_and_source FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_repr FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together FAILED [ 83%] tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source FAILED [ 83%] tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date FAILED [ 83%] tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date FAILED [ 83%] tests/test_validators.py::TestUniquenessForDateValidation::test_repr FAILED [ 83%] tests/test_validators.py::TestUniquenessForDateValidation::test_updated_instance_excluded_from_unique_for_date FAILED [ 83%] tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month FAILED [ 83%] tests/test_validators.py::UniqueForMonthTests::test_unique_for_month FAILED [ 83%] tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year FAILED [ 84%] tests/test_validators.py::UniqueForYearTests::test_unique_for_year FAILED [ 84%] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_included PASSED [ 84%] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_not_included PASSED [ 84%] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_data_error PASSED [ 84%] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_type_error PASSED [ 84%] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_value_error PASSED [ 84%] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_if_not_all_fields_are_provided PASSED [ 84%] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_when_abstract_method_called PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_unversioned PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_query_param_versioning PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_host_name_versioning PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_accept_header_versioning PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_url_path_versioning PASSED [ 84%] tests/test_versioning.py::TestRequestVersion::test_namespace_versioning PASSED [ 85%] tests/test_versioning.py::TestURLReversing::test_reverse_host_name_versioning PASSED [ 85%] tests/test_versioning.py::TestURLReversing::test_reverse_namespace_versioning FAILED [ 85%] tests/test_versioning.py::TestURLReversing::test_reverse_query_param_versioning FAILED [ 85%] tests/test_versioning.py::TestURLReversing::test_reverse_unversioned FAILED [ 85%] tests/test_versioning.py::TestURLReversing::test_reverse_url_path_versioning FAILED [ 85%] tests/test_versioning.py::TestInvalidVersion::test_invalid_query_param_versioning PASSED [ 85%] tests/test_versioning.py::TestInvalidVersion::test_invalid_host_name_versioning PASSED [ 85%] tests/test_versioning.py::TestInvalidVersion::test_invalid_accept_header_versioning PASSED [ 85%] tests/test_versioning.py::TestInvalidVersion::test_invalid_url_path_versioning PASSED [ 85%] tests/test_versioning.py::TestInvalidVersion::test_invalid_namespace_versioning PASSED [ 85%] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default PASSED [ 85%] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default PASSED [ 85%] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_with_default PASSED [ 85%] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default_but_none_allowed PASSED [ 86%] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default_and_none_allowed PASSED [ 86%] tests/test_versioning.py::TestHyperlinkedRelatedField::test_bug_2489 PASSED [ 86%] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_nested FAILED [ 86%] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v1 FAILED [ 86%] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v2 FAILED [ 86%] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_non_api_url_is_properly_reversed_regardless_of_the_version FAILED [ 86%] tests/test_views.py::ClassBasedViewIntegrationTests::test_400_parse_error PASSED [ 86%] tests/test_views.py::FunctionBasedViewIntegrationTests::test_400_parse_error PASSED [ 86%] tests/test_views.py::TestCustomExceptionHandler::test_class_based_view_exception_handler PASSED [ 86%] tests/test_views.py::TestCustomExceptionHandler::test_function_based_view_exception_handler PASSED [ 86%] tests/test_views.py::TestCustomSettings::test_get_exception_handler PASSED [ 86%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_args_kwargs_request_action_map_on_self PASSED [ 86%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_head_request_against_viewset PASSED [ 86%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_actions PASSED [ 87%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_both_name_and_suffix PASSED [ 87%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_empty_actions PASSED [ 87%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr PASSED [ 87%] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr_for_extra_action PASSED [ 87%] tests/test_viewsets.py::GetExtraActionsTests::test_attr_name_check PASSED [ 87%] tests/test_viewsets.py::GetExtraActionsTests::test_extra_actions PASSED [ 87%] tests/test_viewsets.py::GetExtraActionsTests::test_should_only_return_decorated_methods PASSED [ 87%] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names FAILED [ 87%] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view FAILED [ 87%] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view FAILED [ 87%] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_uninitialized_view PASSED [ 87%] tests/test_viewsets.py::ReverseActionTests::test_custom_basename PASSED [ 87%] tests/test_viewsets.py::ReverseActionTests::test_default_basename PASSED [ 87%] tests/test_viewsets.py::ReverseActionTests::test_request_passing FAILED [ 88%] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_not_present_on_output PASSED [ 88%] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_present_on_input PASSED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_are_missing FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_contain_spaces FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth FAILED [ 88%] tests/authentication/test_authentication.py::BasicAuthTests::test_regression_handle_bad_base64_basic_auth_header FAILED [ 88%] tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get FAILED [ 88%] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing FAILED [ 88%] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing_csrf FAILED [ 88%] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing FAILED [ 89%] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing_csrf FAILED [ 89%] tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_makes_one_db_query FAILED [ 89%] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::TokenAuthTests::test_token_has_auto_assigned_key_if_none_provided FAILED [ 90%] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form FAILED [ 90%] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json FAILED [ 90%] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds FAILED [ 90%] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth FAILED [ 90%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 91%] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 91%] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth FAILED [ 91%] tests/authentication/test_authentication.py::IncorrectCredentialsTests::test_incorrect_credentials PASSED [ 91%] tests/authentication/test_authentication.py::FailingAuthAccessedInRenderer::test_failing_auth_accessed_in_renderer PASSED [ 91%] tests/authentication/test_authentication.py::NoAuthenticationClassesTests::test_permission_message_with_no_authentication_classes PASSED [ 91%] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_base_authentication_abstract_method PASSED [ 92%] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_active PASSED [ 92%] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_found FAILED [ 92%] tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works FAILED [ 92%] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out FAILED [ 92%] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in FAILED [ 92%] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in FAILED [ 92%] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in FAILED [ 92%] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out FAILED [ 92%] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in FAILED [ 92%] tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login FAILED [ 92%] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_browsable_api PASSED [ 92%] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_json_response PASSED [ 92%] tests/browsable_api/test_form_rendering.py::TestManyPostView::test_post_many_post_view FAILED [ 92%] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk FAILED [ 93%] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation FAILED [ 93%] tests/importable/test_installed.py::test_installed PASSED [ 93%] tests/importable/test_installed.py::test_compat PASSED [ 93%] tests/importable/test_installed.py::test_serializer_fields_initialization PASSED [ 93%] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_anonymous_request SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_authenticated_request SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGenerator::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorDjango2::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorNotAtRoot::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithMethodLimitedViewSets::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithRestrictedViewSets::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithForeignKey::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithManyToMany::test_schema_for_regular_views SKIPPED [ 93%] tests/schemas/test_coreapi.py::Test4605Regression::test_4605_regression SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_apiview_schema_descriptor PASSED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_field_to_schema SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_link_requires_instance PASSED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_manual_fields SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_on_view PASSED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_via_settings PASSED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_update_fields SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_view_with_manual_schema SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_null_schema SKIPPED [ 94%] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_schema SKIPPED [ 94%] tests/schemas/test_coreapi.py::test_docstring_is_not_stripped_by_get_description PASSED [ 94%] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_endpoint_enumerator_excludes_correctly SKIPPED [ 94%] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_schema_generator_excludes_correctly SKIPPED [ 94%] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_should_include_endpoint_excludes_correctly SKIPPED [ 95%] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_from_router SKIPPED [ 95%] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_generic_view SKIPPED [ 95%] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_nested_routes SKIPPED [ 95%] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced SKIPPED [ 95%] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced_another SKIPPED [ 95%] tests/schemas/test_coreapi.py::test_is_list_view_recognises_retrieve_view_subclasses PASSED [ 95%] tests/schemas/test_coreapi.py::test_head_and_options_methods_are_excluded PASSED [ 95%] tests/schemas/test_coreapi.py::test_schema_handles_exception SKIPPED [ 95%] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_coreapi SKIPPED [ 95%] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_openapi PASSED [ 95%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_accepts_custom_schema_generator SKIPPED [ 95%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_command_detects_schema_generation_mode SKIPPED [ 95%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 95%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_openapi_json_schema SKIPPED [ 96%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_corejson_schema SKIPPED [ 96%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 96%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_openapi_json_schema SKIPPED [ 96%] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_writes_schema_to_file_on_parameter SKIPPED [ 96%] tests/schemas/test_openapi.py::TestBasics::test_filters PASSED [ 96%] tests/schemas/test_openapi.py::TestBasics::test_pagination PASSED [ 96%] tests/schemas/test_openapi.py::TestFieldMapping::test_boolean_default_field PASSED [ 96%] tests/schemas/test_openapi.py::TestFieldMapping::test_lazy_string_field PASSED [ 96%] tests/schemas/test_openapi.py::TestFieldMapping::test_list_field_mapping PASSED [ 96%] tests/schemas/test_openapi.py::TestFieldMapping::test_nullable_fields PASSED [ 96%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_auto_generated_apiview_tags SKIPPED [ 96%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_delete_response_body_generation SKIPPED [ 96%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_different_request_response_objects SKIPPED [ 96%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_duplicate_operation_id SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required_with_patch_method SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_invalid_serializer_class_name SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_list_response_body_generation SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_openapi_yaml_rendering_without_aliases SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_name SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_operation_id_base SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_generation SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_base SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_get SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_viewset SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_get_tags_method SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_tags SKIPPED [ 97%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_paginated_list_response_body_generation SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_parser_mapping SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_with_id_parameter SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_without_parameters SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_renderer_mapping SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_repeat_operation_ids SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_request_body SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_generation SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_nested_serializer SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_retrieve_response_body_generation SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_callable_default SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_datefield SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_filefield SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_hstorefield SKIPPED [ 98%] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_validators SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_authtoken_serializer SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_component_name SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_component_should_not_be_generated_for_delete_method SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_duplicate_component_name SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_mount_url_prefixed_to_paths SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_override_settings SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_paths_construction SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_prefixed_paths_construction SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_schema_construction SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_schema_information SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_schema_information_empty SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_to_json SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_schema_with_no_paths SKIPPED [ 99%] tests/schemas/test_openapi.py::TestGenerator::test_serializer_model SKIPPED [100%] ==================================== ERRORS ==================================== __ ERROR at setup of SearchFilterToManyTests.test_multiple_filter_conditions ___ self = sql = 'INSERT INTO "tests_blog" ("name") VALUES (%s)', params = ['Blog 1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_blog" ("name") VALUES (?)', params = ['Blog 1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_blog /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: cls = @classmethod def setUpTestData(cls): > b1 = Blog.objects.create(name='Blog 1') tests/test_filters.py:352: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_blog" ("name") VALUES (?)', params = ['Blog 1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_blog /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_must_call_distinct_subsequent_m2m_fields _ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['abc', 'def'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['abc', 'def'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: cls = @classmethod def setUpTestData(cls): > SearchFilterModel.objects.create(title='abc', text='def') tests/test_filters.py:387: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['abc', 'def'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_search_in_annotated_field _ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['abc', 'def'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['abc', 'def'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: cls = @classmethod def setUpTestData(cls): > SearchFilterModel.objects.create(title='abc', text='def') tests/test_filters.py:387: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['abc', 'def'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError =================================== FAILURES =================================== ___________ DBTransactionTests.test_no_exception_commit_transaction ____________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = [''] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_no_exception_commit_transaction(self): request = factory.post('/') with self.assertNumQueries(1): > response = self.view(request) tests/test_atomic_requests.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_atomic_requests.py:20: in post BasicModel.objects.create() /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:98: in execute return super().execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ DBTransactionErrorTests.test_generic_exception_delegate_transaction_management _ self = def test_generic_exception_delegate_transaction_management(self): """ Transaction is eventually managed by outer-most transaction atomic block. DRF do not try to interfere here. We let django deal with the transaction when it will catch the Exception. """ request = factory.post('/') with self.assertNumQueries(3): # 1 - begin savepoint # 2 - insert # 3 - release savepoint with transaction.atomic(): self.assertRaises(Exception, self.view, request) > assert not transaction.get_rollback() E AssertionError: assert not True E + where True = () E + where = transaction.get_rollback tests/test_atomic_requests.py:99: AssertionError ____ DBTransactionAPIExceptionTests.test_api_exception_rollback_transaction ____ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = [''] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_api_exception_rollback_transaction(self): """ Transaction is rollbacked by our transaction atomic block. """ request = factory.post('/') num_queries = 4 if connection.features.can_release_savepoints else 3 with self.assertNumQueries(num_queries): # 1 - begin savepoint # 2 - insert # 3 - rollback savepoint # 4 - release savepoint with transaction.atomic(): > response = self.view(request) tests/test_atomic_requests.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_atomic_requests.py:32: in post BasicModel.objects.create() /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:98: in execute return super().execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ MultiDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction __ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = [''] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_api_exception_rollback_transaction(self): """ Transaction is rollbacked by our transaction atomic block. """ request = factory.post('/') num_queries = 4 if connection.features.can_release_savepoints else 3 with self.assertNumQueries(num_queries): # 1 - begin savepoint # 2 - insert # 3 - rollback savepoint # 4 - release savepoint with transaction.atomic(), transaction.atomic(using='secondary'): > response = self.view(request) tests/test_atomic_requests.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_atomic_requests.py:32: in post BasicModel.objects.create() /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:98: in execute return super().execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ NonAtomicDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction_non_atomic_view _ self = def test_api_exception_rollback_transaction_non_atomic_view(self): response = self.client.get('/') # without checking connection.in_atomic_block view raises 500 # due attempt to rollback without transaction > assert response.status_code == status.HTTP_404_NOT_FOUND E AssertionError: assert 400 == 404 E +400 E -404 tests/test_atomic_requests.py:185: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ AuthTokenTests.test_authtoken_can_be_imported_when_not_included_in_installed_apps _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!l1A2UYrnOtq5EnwW0OqLd6c4uNiPUoYSDnClRy2S', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!l1A2UYrnOtq5EnwW0OqLd6c4uNiPUoYSDnClRy2S', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!l1A2UYrnOtq5EnwW0OqLd6c4uNiPUoYSDnClRy2S', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ AuthTokenTests.test_model_admin_displayed_fields _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!egXgWCELATr0qlV1PDTJYAi4KXIwO7kjLA7IkCva', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!egXgWCELATr0qlV1PDTJYAi4KXIwO7kjLA7IkCva', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!egXgWCELATr0qlV1PDTJYAi4KXIwO7kjLA7IkCva', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ AuthTokenTests.test_token_string_representation ________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!Fmox6ptAtFacTOVX4S4W0zx0hGk90SFxOidgT8pG', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!Fmox6ptAtFacTOVX4S4W0zx0hGk90SFxOidgT8pG', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!Fmox6ptAtFacTOVX4S4W0zx0hGk90SFxOidgT8pG', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ AuthTokenTests.test_validate_raise_error_if_no_credentials_provided ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!G6Bl1RlVIHyGgC7JjdTPU0FvjqE0lv7bNs0CAptU', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!G6Bl1RlVIHyGgC7JjdTPU0FvjqE0lv7bNs0CAptU', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!G6Bl1RlVIHyGgC7JjdTPU0FvjqE0lv7bNs0CAptU', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ AuthTokenTests.test_whitespace_in_password __________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!oTJ3iRxmoWgQbD8nQ7JAekyuKXxOYUcPyyn5S3XD', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!oTJ3iRxmoWgQbD8nQ7JAekyuKXxOYUcPyyn5S3XD', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!oTJ3iRxmoWgQbD8nQ7JAekyuKXxOYUcPyyn5S3XD', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ AuthTokenCommandTests.test_command_create_user_token _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!kdfb8j1iNULC9Gjk8dDunRFVULfD2glOijNXaiX3', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!kdfb8j1iNULC9Gjk8dDunRFVULfD2glOijNXaiX3', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!kdfb8j1iNULC9Gjk8dDunRFVULfD2glOijNXaiX3', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ AuthTokenCommandTests.test_command_create_user_token_invalid_user _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!hmu44sgf0wxCK7BEBroM0fTR7xbAKMxdjaVncGOH', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!hmu44sgf0wxCK7BEBroM0fTR7xbAKMxdjaVncGOH', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!hmu44sgf0wxCK7BEBroM0fTR7xbAKMxdjaVncGOH', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ AuthTokenCommandTests.test_command_do_not_reset_user_token __________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!X2uS2yXjJ88brSwKmcPs4e59Ui43d45xZecSnAXN', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!X2uS2yXjJ88brSwKmcPs4e59Ui43d45xZecSnAXN', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!X2uS2yXjJ88brSwKmcPs4e59Ui43d45xZecSnAXN', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ AuthTokenCommandTests.test_command_output ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!6vUjgmW0vguEL8qoDEI4bc9oz7twXcx0Eds86zwZ', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!6vUjgmW0vguEL8qoDEI4bc9oz7twXcx0Eds86zwZ', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!6vUjgmW0vguEL8qoDEI4bc9oz7twXcx0Eds86zwZ', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ AuthTokenCommandTests.test_command_raising_error_for_invalid_user _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!ua0kySif0U6hz7jaHa3RSnwklBXxTe7QZTIECgk9', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!ua0kySif0U6hz7jaHa3RSnwklBXxTe7QZTIECgk9', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!ua0kySif0U6hz7jaHa3RSnwklBXxTe7QZTIECgk9', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ AuthTokenCommandTests.test_command_reset_user_token ______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!HoPy3myKt8dYTWw5FBtyekRj7jxrY4v2NLWmpkEH', None, False, 'test_user', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!HoPy3myKt8dYTWw5FBtyekRj7jxrY4v2NLWmpkEH', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.site = site > self.user = User.objects.create_user(username='test_user') tests/test_authtoken.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!HoPy3myKt8dYTWw5FBtyekRj7jxrY4v2NLWmpkEH', None, False, 'test_user', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ SearchFilterTests.test_exact_search ______________________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ SearchFilterTests.test_regexp_search _____________________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________________ SearchFilterTests.test_search _________________________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ SearchFilterTests.test_search_field_with_additional_transforms ________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ SearchFilterTests.test_search_field_with_null_characters ___________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ SearchFilterTests.test_search_returns_same_queryset_if_no_search_fields_or_terms_provided _ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ SearchFilterTests.test_search_with_filter_subclass ______________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ SearchFilterTests.test_search_with_nonstandard_search_param __________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ SearchFilterTests.test_startswith_search ___________________ self = sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['z', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # z abc # zz bcd # zzz cde # ... for idx in range(10): title = 'z' * (idx + 1) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > SearchFilterModel(title=title, text=text).save() tests/test_filters.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?)' params = ['z', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_searchfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ SearchFilterM2MTests.test_m2m_search _____________________ self = sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s)', params = ['w'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?)' params = ['w'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_attributemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text/attributes is: # # z abc [1, 2, 3] # zz bcd [1, 2, 3] # zzz cde [1, 2, 3] # ... for idx in range(3): label = 'w' * (idx + 1) > AttributeModel.objects.create(label=label) tests/test_filters.py:293: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?)' params = ['w'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_attributemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ SearchFilterM2MTests.test_must_call_distinct _________________ self = sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s)', params = ['w'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?)' params = ['w'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_attributemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text/attributes is: # # z abc [1, 2, 3] # zz bcd [1, 2, 3] # zzz cde [1, 2, 3] # ... for idx in range(3): label = 'w' * (idx + 1) > AttributeModel.objects.create(label=label) tests/test_filters.py:293: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?)' params = ['w'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_attributemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ OrderingFilterTests.test_default_ordering ___________________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ OrderingFilterTests.test_default_ordering_using_string ____________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ OrderingFilterTests.test_get_template_context _________________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ OrderingFilterTests.test_incorrectfield_ordering _______________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ OrderingFilterTests.test_incorrecturl_extrahyphens_ordering __________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________________ OrderingFilterTests.test_ordering _______________________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ OrderingFilterTests.test_ordering_by_aggregate_field _____________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ OrderingFilterTests.test_ordering_by_dotted_source ______________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ OrderingFilterTests.test_ordering_with_improper_configuration _________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ OrderingFilterTests.test_ordering_with_nonstandard_ordering_param _______ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ OrderingFilterTests.test_ordering_with_overridden_get_serializer_class ____ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ OrderingFilterTests.test_ordering_without_ordering_fields ___________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ OrderingFilterTests.test_reverse_ordering ___________________ self = sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s)' params = ['zyx', 'abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Sequence of title/text is: # # zyx abc # yxw bcd # xwv cde for idx in range(3): title = ( chr(ord('z') - idx) + chr(ord('y') - idx) + chr(ord('x') - idx) ) text = ( chr(idx + ord('a')) + chr(idx + ord('b')) + chr(idx + ord('c')) ) > OrderingFilterModel(title=title, text=text).save() tests/test_filters.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?)' params = ['zyx', 'abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ SensitiveOrderingFilterTests.test_cannot_order_by_non_serializer_fields ____ self = sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s)' params = ['userA', 'passA'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?)' params = ['userA', 'passA'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(3): username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx] > SensitiveOrderingFilterModel(username=username, password=password).save() tests/test_filters.py:803: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?)' params = ['userA', 'passA'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ SensitiveOrderingFilterTests.test_order_by_serializer_fields _________ self = sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s)' params = ['userA', 'passA'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?)' params = ['userA', 'passA'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(3): username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx] > SensitiveOrderingFilterModel(username=username, password=password).save() tests/test_filters.py:803: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?)' params = ['userA', 'passA'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________________ TestRootView.test_delete_root_view ______________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestRootView.test_get_root_view ________________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestRootView.test_head_root_view _______________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TestRootView.test_post_cannot_set_id _____________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________________ TestRootView.test_post_error_root_view ____________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestRootView.test_post_root_view _______________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestRootView.test_put_root_view ________________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestInstanceView.test_delete_instance_view __________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestInstanceView.test_get_instance_view ____________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ TestInstanceView.test_get_instance_view_incorrect_arg _____________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ TestInstanceView.test_patch_cannot_create_an_object ______________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestInstanceView.test_patch_instance_view ___________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestInstanceView.test_post_instance_view ___________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestInstanceView.test_put_cannot_set_id ____________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ TestInstanceView.test_put_error_instance_view _________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestInstanceView.test_put_instance_view ____________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ TestInstanceView.test_put_to_deleted_instance _________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TestInstanceView.test_put_to_filtered_out_instance ______________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz', 'filtered out'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestOverriddenGetObject.test_overridden_get_object_view ____________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:348: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCreateModelWithAutoNowAddField.test_create_model_with_auto_now_add_field _ self = sql = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (%s, %s, %s)' params = ['foobar@example.com', 'foobar', '2022-02-03 10:20:15.371425'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?)' params = ['foobar@example.com', 'foobar', '2022-02-03 10:20:15.371425'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_comment /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_create_model_with_auto_now_add_field(self): """ Regression test for #285 https://github.com/encode/django-rest-framework/issues/285 """ data = {'email': 'foobar@example.com', 'content': 'foobar'} request = factory.post('/', data, format='json') > response = self.view(request).render() tests/test_generics.py:404: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:242: in post return self.create(request, *args, **kwargs) rest_framework/mixins.py:19: in create self.perform_create(serializer) rest_framework/mixins.py:24: in perform_create serializer.save() rest_framework/serializers.py:212: in save self.instance = self.create(validated_data) rest_framework/serializers.py:962: in create instance = ModelClass._default_manager.create(**validated_data) /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?)' params = ['foobar@example.com', 'foobar', '2022-02-03 10:20:15.371425'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_comment /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ TestM2MBrowsableAPI.test_m2m_in_browsable_api _________________ self = sql = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"' params = () ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"' params = () def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_classa /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_m2m_in_browsable_api(self): """ Test for particularly ugly regression with m2m in browsable API """ request = factory.get('/', HTTP_ACCEPT='text/html') view = ExampleView().as_view() > response = view(request).render() tests/test_generics.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:239: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:46: in list return Response(serializer.data) rest_framework/serializers.py:768: in data ret = super().data rest_framework/serializers.py:253: in data self._data = self.to_representation(self.instance) rest_framework/serializers.py:686: in to_representation return [ /usr/lib/python3.10/site-packages/django/db/models/query.py:280: in __iter__ self._fetch_all() /usr/lib/python3.10/site-packages/django/db/models/query.py:1324: in _fetch_all self._result_cache = list(self._iterable_class(self)) /usr/lib/python3.10/site-packages/django/db/models/query.py:51: in __iter__ results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1175: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"' params = () def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_classa /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestFilterBackendAppliedToViews.test_dynamic_serializer_form_in_browsable_api _ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances to filter on. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestFilterBackendAppliedToViews.test_get_instance_view_filters_out_name_with_filter_backend _ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances to filter on. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestFilterBackendAppliedToViews.test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it _ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances to filter on. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestFilterBackendAppliedToViews.test_get_root_view_filters_by_name_with_filter_backend _ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances to filter on. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestFilterBackendAppliedToViews.test_get_root_view_filters_out_all_models_with_exclusive_filter_backend _ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances to filter on. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/test_generics.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ GetObjectOr404Tests.test_get_object_or_404_with_invalid_string_for_uuid ____ self = sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT %s, %s' params = ('b2adb50fc23a4b269265feec9ca9331d', 'bar') ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT ?, ?' params = ('b2adb50fc23a4b269265feec9ca9331d', 'bar') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): super().setUp() > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar') tests/test_generics.py:654: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT ?, ?' params = ('b2adb50fc23a4b269265feec9ca9331d', 'bar') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ GetObjectOr404Tests.test_get_object_or_404_with_valid_uuid __________ self = sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT %s, %s' params = ('dc40ff9494764d9283cb26652056149a', 'bar') ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT ?, ?' params = ('dc40ff9494764d9283cb26652056149a', 'bar') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): super().setUp() > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar') tests/test_generics.py:654: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") SELECT ?, ?' params = ('dc40ff9494764d9283cb26652056149a', 'bar') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TemplateHTMLRendererTests.test_not_found_html_view ______________ self = def test_not_found_html_view(self): response = self.client.get('/not_found') > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) E AssertionError: 400 != 404 tests/test_htmlrenderer.py:84: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /not_found __________ TemplateHTMLRendererTests.test_permission_denied_html_view __________ self = def test_permission_denied_html_view(self): response = self.client.get('/permission_denied') > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) E AssertionError: 400 != 403 tests/test_htmlrenderer.py:90: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /permission_denied _______________ TemplateHTMLRendererTests.test_simple_html_view ________________ self = def test_simple_html_view(self): response = self.client.get('/') > self.assertContains(response, "example: foobar") tests/test_htmlrenderer.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/test/testcases.py:462: in assertContains text_repr, real_count, msg_prefix = self._assert_contains( /usr/lib/python3.10/site-packages/django/test/testcases.py:432: in _assert_contains self.assertEqual( E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200) ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / __ TemplateHTMLRendererExceptionTests.test_not_found_html_view_with_template ___ self = def test_not_found_html_view_with_template(self): response = self.client.get('/not_found') > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) E AssertionError: 400 != 404 tests/test_htmlrenderer.py:154: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /not_found _ TemplateHTMLRendererExceptionTests.test_permission_denied_html_view_with_template _ self = def test_permission_denied_html_view_with_template(self): response = self.client.get('/permission_denied') > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) E AssertionError: 400 != 403 tests/test_htmlrenderer.py:161: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /permission_denied _______________ TestLazyHyperlinkNames.test_lazy_hyperlink_names _______________ self = sql = 'INSERT INTO "tests_example" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_example" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_example /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.example = Example.objects.create(text='foo') tests/test_lazy_hyperlinks.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_example" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_example /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ TestSimpleMetadataFieldInfo.test_related_field_choices ____________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = [''] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_related_field_choices(self): options = metadata.SimpleMetadata() > BasicModel.objects.create() tests/test_metadata.py:320: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = [''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ TestMiddleware.test_middleware_can_access_user_when_processing_response ____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$pW9h1RpXpTFh7MsNZkmU13$86e3a9271ca478d37fdb018633e3377b', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$pW9h1RpXpTFh7MsNZkmU13$86e3a9271ca478d37fdb018633e3377b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = @override_settings(MIDDLEWARE=('tests.test_middleware.RequestUserMiddleware',)) def test_middleware_can_access_user_when_processing_response(self): > user = User.objects.create_user('john', 'john@example.com', 'password') tests/test_middleware.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$pW9h1RpXpTFh7MsNZkmU13$86e3a9271ca478d37fdb018633e3377b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ TestRelationalFieldDisplayValue.test_custom_display_value ___________ self = sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT %s UNION ALL SELECT %s UNION ALL SELECT %s' params = ('Red', 'Yellow', 'Green') ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT ? UNION ALL SELECT ? UNION ALL SELECT ?' params = ('Red', 'Yellow', 'Green') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > DisplayValueTargetModel.objects.bulk_create([ DisplayValueTargetModel(name='Red'), DisplayValueTargetModel(name='Yellow'), DisplayValueTargetModel(name='Green'), ]) tests/test_model_serializer.py:748: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:514: in bulk_create returned_columns = self._batched_insert( /usr/lib/python3.10/site-packages/django/db/models/query.py:1293: in _batched_insert self._insert(item, fields=fields, using=self.db, ignore_conflicts=ignore_conflicts) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT ? UNION ALL SELECT ? UNION ALL SELECT ?' params = ('Red', 'Yellow', 'Green') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ TestRelationalFieldDisplayValue.test_default_display_value __________ self = sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT %s UNION ALL SELECT %s UNION ALL SELECT %s' params = ('Red', 'Yellow', 'Green') ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT ? UNION ALL SELECT ? UNION ALL SELECT ?' params = ('Red', 'Yellow', 'Green') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > DisplayValueTargetModel.objects.bulk_create([ DisplayValueTargetModel(name='Red'), DisplayValueTargetModel(name='Yellow'), DisplayValueTargetModel(name='Green'), ]) tests/test_model_serializer.py:748: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:514: in bulk_create returned_columns = self._batched_insert( /usr/lib/python3.10/site-packages/django/db/models/query.py:1293: in _batched_insert self._insert(item, fields=fields, using=self.db, ignore_conflicts=ignore_conflicts) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") SELECT ? UNION ALL SELECT ? UNION ALL SELECT ?' params = ('Red', 'Yellow', 'Green') def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________________ TestIntegration.test_pk_create ________________________ self = sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s)' params = ['foreign_key'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.foreign_key_target = ForeignKeyTargetModel.objects.create( name='foreign_key' ) tests/test_model_serializer.py:783: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestIntegration.test_pk_retrival _______________________ self = sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s)' params = ['foreign_key'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.foreign_key_target = ForeignKeyTargetModel.objects.create( name='foreign_key' ) tests/test_model_serializer.py:783: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________________ TestIntegration.test_pk_update ________________________ self = sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s)' params = ['foreign_key'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.foreign_key_target = ForeignKeyTargetModel.objects.create( name='foreign_key' ) tests/test_model_serializer.py:783: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?)' params = ['foreign_key'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ TestBulkCreate.test_bulk_create ________________________ self = sql = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (%s)', params = ['a'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?)' params = ['a'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_bulkcreatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_bulk_create(self): class BasicModelSerializer(serializers.ModelSerializer): class Meta: model = BulkCreateModel fields = ('name',) class BulkCreateSerializer(serializers.ListSerializer): child = BasicModelSerializer() data = [{'name': 'a'}, {'name': 'b'}, {'name': 'c'}] serializer = BulkCreateSerializer(data=data) assert serializer.is_valid() # Objects are returned by save(). > instances = serializer.save() tests/test_model_serializer.py:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/serializers.py:731: in save self.instance = self.create(validated_data) rest_framework/serializers.py:703: in create return [ rest_framework/serializers.py:704: in self.child.create(attrs) for attrs in validated_data rest_framework/serializers.py:962: in create instance = ModelClass._default_manager.create(**validated_data) /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?)' params = ['a'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_bulkcreatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ Issue2704TestCase.test_queryset_all ______________________ self = sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s)' params = ['abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onefieldmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_queryset_all(self): class TestSerializer(serializers.ModelSerializer): additional_attr = serializers.CharField() class Meta: model = OneFieldModel fields = ('char_field', 'additional_attr') > OneFieldModel.objects.create(char_field='abc') tests/test_model_serializer.py:1008: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onefieldmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ Issue3674Test.test_nonID_PK_foreignkey_model_serializer ____________ self = sql = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (%s)' params = ['abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_issue3674parentmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_nonID_PK_foreignkey_model_serializer(self): class TestChildModelSerializer(serializers.ModelSerializer): class Meta: model = Issue3674ChildModel fields = ('value', 'parent') class TestParentModelSerializer(serializers.ModelSerializer): class Meta: model = Issue3674ParentModel fields = ('id', 'title', 'children') > parent = Issue3674ParentModel.objects.create(title='abc') tests/test_model_serializer.py:1193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_issue3674parentmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ Issue4897TestCase.test_should_assert_if_writing_readonly_fields ________ self = sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s)' params = ['abc'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onefieldmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_should_assert_if_writing_readonly_fields(self): class TestSerializer(serializers.ModelSerializer): class Meta: model = OneFieldModel fields = ('char_field',) readonly_fields = fields > obj = OneFieldModel.objects.create(char_field='abc') tests/test_model_serializer.py:1214: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?)' params = ['abc'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onefieldmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ Test5004UniqueChoiceField.test_unique_choice_field ______________ self = sql = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (%s)' params = ['choice1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?)' params = ['choice1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquechoicemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_unique_choice_field(self): class TestUniqueChoiceSerializer(serializers.ModelSerializer): class Meta: model = UniqueChoiceModel fields = '__all__' > UniqueChoiceModel.objects.create(name='choice1') tests/test_model_serializer.py:1228: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?)' params = ['choice1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquechoicemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestFieldSource.test_traverse_nullable_fk ___________________ self = sql = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (%s, %s)' params = ['', None] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?)' params = ['', None] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_nestedforeignkeysource /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_traverse_nullable_fk(self): """ A dotted source with nullable elements uses default when any item in the chain is None. #5849. Similar to model example from test_serializer.py `test_default_for_multiple_dotted_source` method, but using RelatedField, rather than CharField. """ class TestSerializer(serializers.ModelSerializer): target = serializers.PrimaryKeyRelatedField( source='target.target', read_only=True, allow_null=True, default=None ) class Meta: model = NestedForeignKeySource fields = ('target', ) > model = NestedForeignKeySource.objects.create() tests/test_model_serializer.py:1251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?)' params = ['', None] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_nestedforeignkeysource /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ Issue6110Test.test_model_serializer_custom_manager ______________ self = sql = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (%s)' params = ['test_name'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?)' params = ['test_name'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_issue6110testmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_model_serializer_custom_manager(self): > instance = Issue6110ModelSerializer().create({'name': 'test_name'}) tests/test_model_serializer.py:1289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/serializers.py:962: in create instance = ModelClass._default_manager.create(**validated_data) /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?)' params = ['test_name'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_issue6110testmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ Issue6751Test.test_model_serializer_save_m2m_after_instance __________ self = sql = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (%s, %s)' params = ['initial value', ''] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?)' params = ['initial value', ''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_issue6751model /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_model_serializer_save_m2m_after_instance(self): class TestSerializer(serializers.ModelSerializer): class Meta: model = Issue6751Model fields = ( 'many_to_many', 'char_field', ) > instance = Issue6751Model.objects.create(char_field='initial value') tests/test_model_serializer.py:1321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?)' params = ['initial value', ''] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_issue6751model /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ InheritedModelSerializationTests.test_onetoone_primary_key_model_fields_as_expected _ self = sql = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (%s)' params = ['parent name'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?)' params = ['parent name'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_parentmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_onetoone_primary_key_model_fields_as_expected(self): """ Assert that a model with a onetoone field that is the primary key is not treated like a derived model """ > parent = ParentModel.objects.create(name1='parent name') tests/test_multitable_inheritance.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?)' params = ['parent name'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_parentmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestPaginationIntegration.test_filtered_items_are_paginated __________ self = def test_filtered_items_are_paginated(self): request = factory.get('/', {'page': 2}) > response = self.view(request) tests/test_pagination.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _______________ TestPaginationIntegration.test_setting_page_size _______________ self = def test_setting_page_size(self): """ When 'paginate_by_param' is set, the client may choose a page size. """ request = factory.get('/', {'page_size': 10}) > response = self.view(request) tests/test_pagination.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ________ TestPaginationIntegration.test_setting_page_size_over_maximum _________ self = def test_setting_page_size_over_maximum(self): """ When page_size parameter exceeds maximum allowable, then it should be capped to the maximum. """ request = factory.get('/', {'page_size': 1000}) > response = self.view(request) tests/test_pagination.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ___________ TestPaginationIntegration.test_setting_page_size_to_zero ___________ self = def test_setting_page_size_to_zero(self): """ When page_size parameter is invalid it should return to the default. """ request = factory.get('/', {'page_size': 0}) > response = self.view(request) tests/test_pagination.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____ TestPaginationIntegration.test_additional_query_params_are_preserved _____ self = def test_additional_query_params_are_preserved(self): request = factory.get('/', {'page': 2, 'filter': 'even'}) > response = self.view(request) tests/test_pagination.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _______ TestPaginationIntegration.test_empty_query_params_are_preserved ________ self = def test_empty_query_params_are_preserved(self): request = factory.get('/', {'page': 2, 'filter': ''}) > response = self.view(request) tests/test_pagination.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) rest_framework/generics.py:199: in get return self.list(request, *args, **kwargs) rest_framework/mixins.py:43: in list return self.get_paginated_response(serializer.data) rest_framework/generics.py:178: in get_paginated_response return self.paginator.get_paginated_response(data) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _________________ TestPageNumberPagination.test_no_page_number _________________ self = def test_no_page_number(self): request = Request(factory.get('/')) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:177: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost __________________ TestPageNumberPagination.test_second_page ___________________ self = def test_second_page(self): request = Request(factory.get('/', {'page': 2})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:177: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:227: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:274: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ___________________ TestPageNumberPagination.test_last_page ____________________ self = def test_last_page(self): request = Request(factory.get('/', {'page': 'last'})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:177: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:228: in get_paginated_response ('previous', self.get_previous_link()), rest_framework/pagination.py:281: in get_previous_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____________ TestPageNumberPaginationOverride.test_no_page_number _____________ self = def test_no_page_number(self): request = Request(factory.get('/')) queryset = self.paginate_queryset(request) content = self.get_paginated_content(queryset) > context = self.get_html_context() tests/test_pagination.py:332: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:326: in get_html_context return self.pagination.get_html_context() rest_framework/pagination.py:288: in get_html_context base_url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ________________________ TestLimitOffset.test_no_offset ________________________ self = def test_no_offset(self): request = Request(factory.get('/', {'limit': 5})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________________ TestLimitOffset.test_single_offset ______________________ self = def test_single_offset(self): """ When the offset is not a multiple of the limit we get some edge cases: * The first page should still be offset zero. * We may end up displaying an extra page in the pagination control. """ request = Request(factory.get('/', {'limit': 5, 'offset': 1})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:420: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________________ TestLimitOffset.test_first_offset _______________________ self = def test_first_offset(self): request = Request(factory.get('/', {'limit': 5, 'offset': 5})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:444: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________________ TestLimitOffset.test_middle_offset ______________________ self = def test_middle_offset(self): request = Request(factory.get('/', {'limit': 5, 'offset': 10})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:468: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________________ TestLimitOffset.test_ending_offset ______________________ self = def test_ending_offset(self): request = Request(factory.get('/', {'limit': 5, 'offset': 95})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:401: in get_paginated_response ('previous', self.get_previous_link()), rest_framework/pagination.py:466: in get_previous_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____________________ TestLimitOffset.test_erronous_offset _____________________ self = def test_erronous_offset(self): request = Request(factory.get('/', {'limit': 5, 'offset': 1000})) queryset = self.paginate_queryset(request) > self.get_paginated_content(queryset) tests/test_pagination.py:517: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:401: in get_paginated_response ('previous', self.get_previous_link()), rest_framework/pagination.py:466: in get_previous_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________________ TestLimitOffset.test_invalid_limit ______________________ self = def test_invalid_limit(self): """ An invalid limit query param should be ignored in favor of the default. """ request = Request(factory.get('/', {'limit': 'invalid', 'offset': 0})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _______________________ TestLimitOffset.test_zero_limit ________________________ self = def test_zero_limit(self): """ An zero limit query param should be ignored in favor of the default. """ request = Request(factory.get('/', {'limit': 0, 'offset': 0})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ________________________ TestLimitOffset.test_max_limit ________________________ self = def test_max_limit(self): """ The limit defaults to the max_limit when there is a max_limit and the requested limit is greater than the max_limit """ offset = 50 request = Request(factory.get('/', {'limit': '11235', 'offset': offset})) queryset = self.paginate_queryset(request) > content = self.get_paginated_content(queryset) tests/test_pagination.py:562: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:373: in get_paginated_content response = self.pagination.get_paginated_response(queryset) rest_framework/pagination.py:400: in get_paginated_response ('next', self.get_next_link()), rest_framework/pagination.py:456: in get_next_link url = self.request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ___________________ TestCursorPagination.test_invalid_cursor ___________________ self = def test_invalid_cursor(self): request = Request(factory.get('/', {'cursor': '123'})) with pytest.raises(exceptions.NotFound): > self.pagination.paginate_queryset(self.queryset, request) tests/test_pagination.py:614: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _________________ TestCursorPagination.test_cursor_pagination __________________ self = def test_cursor_pagination(self): > (previous, current, next, previous_url, next_url) = self.get_pages('/') tests/test_pagination.py:635: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ____ TestCursorPagination.test_cursor_pagination_current_page_empty_forward ____ self = def test_cursor_pagination_current_page_empty_forward(self): # Regression test for #6504 self.pagination.base_url = "/" # We have a cursor on the element at position 100, but this element doesn't exist # anymore. cursor = pagination.Cursor(reverse=False, offset=0, position=100) url = self.pagination.encode_cursor(cursor) self.pagination.base_url = "/" # Loading the page with this cursor doesn't crash > (previous, current, next, previous_url, next_url) = self.get_pages(url) tests/test_pagination.py:714: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ____ TestCursorPagination.test_cursor_pagination_current_page_empty_reverse ____ self = def test_cursor_pagination_current_page_empty_reverse(self): # Regression test for #6504 self.pagination.base_url = "/" # We have a cursor on the element at position 100, but this element doesn't exist # anymore. cursor = pagination.Cursor(reverse=True, offset=0, position=100) url = self.pagination.encode_cursor(cursor) self.pagination.base_url = "/" # Loading the page with this cursor doesn't crash > (previous, current, next, previous_url, next_url) = self.get_pages(url) tests/test_pagination.py:737: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost __________ TestCursorPagination.test_cursor_pagination_with_page_size __________ self = def test_cursor_pagination_with_page_size(self): > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=20') tests/test_pagination.py:750: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ____ TestCursorPagination.test_cursor_pagination_with_page_size_over_limit _____ self = def test_cursor_pagination_with_page_size_over_limit(self): > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=30') tests/test_pagination.py:762: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _______ TestCursorPagination.test_cursor_pagination_with_page_size_zero ________ self = def test_cursor_pagination_with_page_size_zero(self): > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=0') tests/test_pagination.py:774: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____ TestCursorPagination.test_cursor_pagination_with_page_size_negative ______ self = def test_cursor_pagination_with_page_size_negative(self): > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=-5') tests/test_pagination.py:841: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagination.py:995: in get_pages queryset = self.pagination.paginate_queryset(self.queryset, request) rest_framework/pagination.py:610: in paginate_queryset self.base_url = request.build_absolute_uri() /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _________ TestCursorPaginationWithValueQueryset.test_cursor_pagination _________ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_forward _ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_reverse _ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size __ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_negative _ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_over_limit _ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_zero _ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ TestCursorPaginationWithValueQueryset.test_get_paginated_response_schema ___ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ TestCursorPaginationWithValueQueryset.test_invalid_cursor ___________ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ TestCursorPaginationWithValueQueryset.test_use_with_ordering_filter ______ self = sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s)' params = [1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): class ExamplePagination(pagination.CursorPagination): page_size = 5 page_size_query_param = 'page_size' max_page_size = 20 ordering = 'created' self.pagination = ExamplePagination() data = [ 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9 ] for idx in data: > CursorPaginationModel.objects.create(created=idx) tests/test_pagination.py:1044: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?)' params = [1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ ModelPermissionsIntegrationTests.test_api_root_view_discard_default_django_model_permission _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$AKwvCcGVsJ9OrWKNZlnF8F$4239577e2bae2415a5e301e176f8042e', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$AKwvCcGVsJ9OrWKNZlnF8F$4239577e2bae2415a5e301e176f8042e', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$AKwvCcGVsJ9OrWKNZlnF8F$4239577e2bae2415a5e301e176f8042e', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ ModelPermissionsIntegrationTests.test_calling_method_not_allowed _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$tjeeMV9HJAk1OikzuZa2jB$9607713db207a74cf69c57ba6e91b51f', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tjeeMV9HJAk1OikzuZa2jB$9607713db207a74cf69c57ba6e91b51f', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tjeeMV9HJAk1OikzuZa2jB$9607713db207a74cf69c57ba6e91b51f', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ ModelPermissionsIntegrationTests.test_check_auth_before_queryset_call _____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$GMDgqWVa0pfz2Mo3z1qpOp$ce4dffd3246636dfbfa3d01c80892202', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$GMDgqWVa0pfz2Mo3z1qpOp$ce4dffd3246636dfbfa3d01c80892202', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$GMDgqWVa0pfz2Mo3z1qpOp$ce4dffd3246636dfbfa3d01c80892202', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ ModelPermissionsIntegrationTests.test_does_not_have_create_permissions ____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$zsEFa6tPLRLXRTU9yarQZF$020bda2ad312625c7dc1c89314d01313', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$zsEFa6tPLRLXRTU9yarQZF$020bda2ad312625c7dc1c89314d01313', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$zsEFa6tPLRLXRTU9yarQZF$020bda2ad312625c7dc1c89314d01313', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ ModelPermissionsIntegrationTests.test_does_not_have_delete_permissions ____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$gdOYbQ5zMCfPSz4tHe05XF$6e8285d822d0962be60efc8f0341d1b0', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gdOYbQ5zMCfPSz4tHe05XF$6e8285d822d0962be60efc8f0341d1b0', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gdOYbQ5zMCfPSz4tHe05XF$6e8285d822d0962be60efc8f0341d1b0', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ ModelPermissionsIntegrationTests.test_does_not_have_put_permissions ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$ACczqmVllVijj0HTnx8B5z$aece2fc53dd5f6f3ef04d02e6bc23f23', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ACczqmVllVijj0HTnx8B5z$aece2fc53dd5f6f3ef04d02e6bc23f23', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ACczqmVllVijj0HTnx8B5z$aece2fc53dd5f6f3ef04d02e6bc23f23', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ ModelPermissionsIntegrationTests.test_empty_view_does_not_assert _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$rgpR7jdpyg7cnUrucYLp1w$381d241e11a8c4c35a640a7a067ab86c', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$rgpR7jdpyg7cnUrucYLp1w$381d241e11a8c4c35a640a7a067ab86c', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$rgpR7jdpyg7cnUrucYLp1w$381d241e11a8c4c35a640a7a067ab86c', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ ModelPermissionsIntegrationTests.test_get_queryset_has_create_permissions ___ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$TLgcso7Wkt6tLtHdr8Dz9r$9dc45e36cf25e695049c9a274f71db2d', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TLgcso7Wkt6tLtHdr8Dz9r$9dc45e36cf25e695049c9a274f71db2d', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TLgcso7Wkt6tLtHdr8Dz9r$9dc45e36cf25e695049c9a274f71db2d', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ ModelPermissionsIntegrationTests.test_has_create_permissions _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$MlkNGKBTNGhiQtERGZURYF$3b52fb70b30aab033a96ee86e5012212', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MlkNGKBTNGhiQtERGZURYF$3b52fb70b30aab033a96ee86e5012212', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MlkNGKBTNGhiQtERGZURYF$3b52fb70b30aab033a96ee86e5012212', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ ModelPermissionsIntegrationTests.test_has_delete_permissions _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$OLFhbrP7SmpI71dyyITxMF$47e04f1899e027f803bdcc97231473a2', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OLFhbrP7SmpI71dyyITxMF$47e04f1899e027f803bdcc97231473a2', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OLFhbrP7SmpI71dyyITxMF$47e04f1899e027f803bdcc97231473a2', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ ModelPermissionsIntegrationTests.test_has_put_permissions ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$MMuVOw4X0YjcFOYqRNlx9m$4d36241279ba55475a9abb37a21e5965', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MMuVOw4X0YjcFOYqRNlx9m$4d36241279ba55475a9abb37a21e5965', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MMuVOw4X0YjcFOYqRNlx9m$4d36241279ba55475a9abb37a21e5965', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ ModelPermissionsIntegrationTests.test_options_disallowed ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$4gblcwTeZO0LbRrxekBxnh$cbcc81b3d5f2728da626c1881db01108', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$4gblcwTeZO0LbRrxekBxnh$cbcc81b3d5f2728da626c1881db01108', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$4gblcwTeZO0LbRrxekBxnh$cbcc81b3d5f2728da626c1881db01108', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ ModelPermissionsIntegrationTests.test_options_permitted ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$Iw4xts0e32R3XK3KFSJZPI$53b179235b8ae8f2b2690b7b5d35a128', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Iw4xts0e32R3XK3KFSJZPI$53b179235b8ae8f2b2690b7b5d35a128', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Iw4xts0e32R3XK3KFSJZPI$53b179235b8ae8f2b2690b7b5d35a128', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ ModelPermissionsIntegrationTests.test_options_updateonly ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$HPlKVL2CVZxmKTZmGCF252$34c0a6a89186e509a8dc70c02c548e9f', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$HPlKVL2CVZxmKTZmGCF252$34c0a6a89186e509a8dc70c02c548e9f', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$HPlKVL2CVZxmKTZmGCF252$34c0a6a89186e509a8dc70c02c548e9f', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ ModelPermissionsIntegrationTests.test_queryset_assertions ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$AmZHGB6gWHGM58lwqdV4sB$f8572c4a7b873f6d584ca472e470d80b', None, False, 'disallowed', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$AmZHGB6gWHGM58lwqdV4sB$f8572c4a7b873f6d584ca472e470d80b', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > User.objects.create_user('disallowed', 'disallowed@example.com', 'password') tests/test_permissions.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$AmZHGB6gWHGM58lwqdV4sB$f8572c4a7b873f6d584ca472e470d80b', None, False, 'disallowed', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ CustomPermissionsTests.test_permission_denied _________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > BasicModel(text='foo').save() tests/test_permissions.py:483: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ CustomPermissionsTests.test_permission_denied_for_object ___________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > BasicModel(text='foo').save() tests/test_permissions.py:483: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ CustomPermissionsTests.test_permission_denied_for_object_with_custom_detail __ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > BasicModel(text='foo').save() tests/test_permissions.py:483: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ CustomPermissionsTests.test_permission_denied_with_custom_detail _______ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > BasicModel(text='foo').save() tests/test_permissions.py:483: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PermissionsCompositionTests.test_and_false __________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$HJwdxPXT0rO6kHwglafUcn$9dfa039abcd40af514e9f94b7d5c4252', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$HJwdxPXT0rO6kHwglafUcn$9dfa039abcd40af514e9f94b7d5c4252', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$HJwdxPXT0rO6kHwglafUcn$9dfa039abcd40af514e9f94b7d5c4252', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ PermissionsCompositionTests.test_and_lazyness _________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$jEi6Tfg6P07J8ITfNhYdCL$57829c43bee01c3ef35e8e4ab5e6bfb1', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$jEi6Tfg6P07J8ITfNhYdCL$57829c43bee01c3ef35e8e4ab5e6bfb1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$jEi6Tfg6P07J8ITfNhYdCL$57829c43bee01c3ef35e8e4ab5e6bfb1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PermissionsCompositionTests.test_and_true ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$Z0IFn3VCsxoQxb6EyLTYro$9899d21f1b2b77e06bbb17bce5d14e1b', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Z0IFn3VCsxoQxb6EyLTYro$9899d21f1b2b77e06bbb17bce5d14e1b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Z0IFn3VCsxoQxb6EyLTYro$9899d21f1b2b77e06bbb17bce5d14e1b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PermissionsCompositionTests.test_not_false __________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$zGchLY9enRPaabNgou8WVa$25071fe0a9976a32a575f31aa2d642c9', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$zGchLY9enRPaabNgou8WVa$25071fe0a9976a32a575f31aa2d642c9', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$zGchLY9enRPaabNgou8WVa$25071fe0a9976a32a575f31aa2d642c9', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PermissionsCompositionTests.test_not_true ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$l8yYf4FnNvNypuyhf8zwj5$3bac797d07ee1cc1486b06aef47ef02c', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$l8yYf4FnNvNypuyhf8zwj5$3bac797d07ee1cc1486b06aef47ef02c', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$l8yYf4FnNvNypuyhf8zwj5$3bac797d07ee1cc1486b06aef47ef02c', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PermissionsCompositionTests.test_object_and_lazyness _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$M9ew1yvSxbVl8EMgeQsbkC$66308a93c6e198c9f73362b7648f6b21', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$M9ew1yvSxbVl8EMgeQsbkC$66308a93c6e198c9f73362b7648f6b21', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$M9ew1yvSxbVl8EMgeQsbkC$66308a93c6e198c9f73362b7648f6b21', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PermissionsCompositionTests.test_object_or_lazyness ______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$9J7fiKhAgZ32nQsAiO6JSg$253c103f60fdfdcb633bab7390493394', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$9J7fiKhAgZ32nQsAiO6JSg$253c103f60fdfdcb633bab7390493394', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$9J7fiKhAgZ32nQsAiO6JSg$253c103f60fdfdcb633bab7390493394', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PermissionsCompositionTests.test_or_false ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$OWZFmI6BxE2BIievpGGeav$f0b143e09e28af030afa90eaea296441', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OWZFmI6BxE2BIievpGGeav$f0b143e09e28af030afa90eaea296441', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OWZFmI6BxE2BIievpGGeav$f0b143e09e28af030afa90eaea296441', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ PermissionsCompositionTests.test_or_lazyness _________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$TbvK1vayO5COAKryRc3Zzs$77c204325eb67b216d35734fcb8b6d20', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TbvK1vayO5COAKryRc3Zzs$77c204325eb67b216d35734fcb8b6d20', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TbvK1vayO5COAKryRc3Zzs$77c204325eb67b216d35734fcb8b6d20', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ PermissionsCompositionTests.test_or_true ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$uUU7JlNus3bvTsIURvzUGE$767870d22f174b04206fae4cea5667ab', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$uUU7JlNus3bvTsIURvzUGE$767870d22f174b04206fae4cea5667ab', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$uUU7JlNus3bvTsIURvzUGE$767870d22f174b04206fae4cea5667ab', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ PermissionsCompositionTests.test_several_levels_and_precedence ________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$tXVyX0OG0CqNzurtiDt1AU$f868ee59573b778ead509468caddc8e8', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tXVyX0OG0CqNzurtiDt1AU$f868ee59573b778ead509468caddc8e8', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tXVyX0OG0CqNzurtiDt1AU$f868ee59573b778ead509468caddc8e8', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ PermissionsCompositionTests.test_several_levels_and_precedence_with_negation _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$UMO5Mh5f1i4PmSmc44dgZW$1dc3793311150c5a3a35a818cd71544a', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$UMO5Mh5f1i4PmSmc44dgZW$1dc3793311150c5a3a35a818cd71544a', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$UMO5Mh5f1i4PmSmc44dgZW$1dc3793311150c5a3a35a818cd71544a', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ PermissionsCompositionTests.test_several_levels_without_negation _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$0daFrPubwIbCcj9l2zK7FI$a63228e2d57d5190e5a72843a5db31d0', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$0daFrPubwIbCcj9l2zK7FI$a63228e2d57d5190e5a72843a5db31d0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/test_permissions.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$0daFrPubwIbCcj9l2zK7FI$a63228e2d57d5190e5a72843a5db31d0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestPrefetchRelatedUpdates.test_prefetch_related_excluding_instance_from_original_queryset _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['', None, False, 'tom', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'tom', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.user = User.objects.create(username='tom', email='tom@example.com') tests/test_prefetch_related.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'tom', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestPrefetchRelatedUpdates.test_prefetch_related_updates ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['', None, False, 'tom', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'tom', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.user = User.objects.create(username='tom', email='tom@example.com') tests/test_prefetch_related.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'tom', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ HyperlinkedManyToManyTests.test_many_to_many_create ______________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ HyperlinkedManyToManyTests.test_many_to_many_retrieve _____________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ HyperlinkedManyToManyTests.test_many_to_many_retrieve_prefetch_related ____ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ HyperlinkedManyToManyTests.test_many_to_many_update ______________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ HyperlinkedManyToManyTests.test_relative_hyperlinks ______________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_create __________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ HyperlinkedManyToManyTests.test_reverse_many_to_many_retrieve _________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_update __________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_hyperlink.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ HyperlinkedForeignKeyTests.test_foreign_key_create ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ HyperlinkedForeignKeyTests.test_foreign_key_retrieve _____________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ HyperlinkedForeignKeyTests.test_foreign_key_update ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ HyperlinkedForeignKeyTests.test_foreign_key_update_incorrect_type _______ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ HyperlinkedForeignKeyTests.test_foreign_key_update_with_invalid_null _____ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_create __________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_retrieve _________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_update __________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring _ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_null __ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ HyperlinkedNullableForeignKeyTests.test_foreign_key_retrieve_with_null ____ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring _ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_null __ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ HyperlinkedNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null _ self = sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = OneToOneTarget(name='target-1') > target.save() tests/test_relations_hyperlink.py:436: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PKManyToManyTests.test_many_to_many_create __________________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ PKManyToManyTests.test_many_to_many_retrieve _________________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ PKManyToManyTests.test_many_to_many_retrieve_prefetch_related _________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ PKManyToManyTests.test_many_to_many_unsaved __________________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PKManyToManyTests.test_many_to_many_update __________________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ PKManyToManyTests.test_reverse_many_to_many_create ______________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PKManyToManyTests.test_reverse_many_to_many_retrieve _____________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ PKManyToManyTests.test_reverse_many_to_many_update ______________ self = sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): for idx in range(1, 4): target = ManyToManyTarget(name='target-%d' % idx) > target.save() tests/test_relations_pk.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_manytomanytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PKForeignKeyTests.test_foreign_key_create ___________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ PKForeignKeyTests.test_foreign_key_not_required ________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ PKForeignKeyTests.test_foreign_key_retrieve __________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ PKForeignKeyTests.test_foreign_key_update ___________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ PKForeignKeyTests.test_foreign_key_update_incorrect_type ___________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ PKForeignKeyTests.test_foreign_key_update_with_invalid_null __________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ PKForeignKeyTests.test_foreign_key_with_empty _________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ PKForeignKeyTests.test_foreign_key_with_unsaved ________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ PKForeignKeyTests.test_queryset_size_with_Q_limited_choices __________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ PKForeignKeyTests.test_queryset_size_with_limited_choices ___________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ PKForeignKeyTests.test_queryset_size_without_limited_choices _________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ PKForeignKeyTests.test_reverse_foreign_key_create _______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PKForeignKeyTests.test_reverse_foreign_key_retrieve ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ PKForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related _____ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ PKForeignKeyTests.test_reverse_foreign_key_update _______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PKRelationTests.test_relation_field_callable_source ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.target = ForeignKeyTarget.objects.create(name='target-1') tests/test_relations_pk.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ PKRelationTests.test_relation_field_property_source ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.target = ForeignKeyTarget.objects.create(name='target-1') tests/test_relations_pk.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring ___ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_null _______ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ PKNullableForeignKeyTests.test_foreign_key_retrieve_with_null _________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring ___ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_null _______ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ PKNullableForeignKeyTests.test_null_uuid_foreign_key_serializes_as_none ____ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ PKNullableForeignKeyTests.test_nullable_uuid_foreign_key_is_valid_when_none __ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_pk.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ PKNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null ______ self = sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = OneToOneTarget(name='target-1') > target.save() tests/test_relations_pk.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key ___________ self = sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Given: Some target models already exist self.target = target = OneToOneTarget(name='target-1') > target.save() tests/test_relations_pk.py:579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_does_not_exist ____ self = sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Given: Some target models already exist self.target = target = OneToOneTarget(name='target-1') > target.save() tests/test_relations_pk.py:579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_no_duplicates ____ self = sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Given: Some target models already exist self.target = target = OneToOneTarget(name='target-1') > target.save() tests/test_relations_pk.py:579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_onetoonetarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ SlugForeignKeyTests.test_foreign_key_create __________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ SlugForeignKeyTests.test_foreign_key_retrieve _________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ SlugForeignKeyTests.test_foreign_key_retrieve_select_related _________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ SlugForeignKeyTests.test_foreign_key_update __________________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ SlugForeignKeyTests.test_foreign_key_update_incorrect_type __________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ SlugForeignKeyTests.test_foreign_key_update_with_invalid_null _________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ SlugForeignKeyTests.test_reverse_foreign_key_create ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ SlugForeignKeyTests.test_reverse_foreign_key_retrieve _____________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ SlugForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related ____ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ SlugForeignKeyTests.test_reverse_foreign_key_update ______________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring __ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_null ______ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ SlugNullableForeignKeyTests.test_foreign_key_retrieve_with_null ________ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring __ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_null ______ self = sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s)' params = ['target-1'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): target = ForeignKeyTarget(name='target-1') > target.save() tests/test_relations_slug.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?)' params = ['target-1'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_foreignkeytarget /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ RendererEndToEndTests.test_204_no_content_responses_have_no_content_type_set _ self = def test_204_no_content_responses_have_no_content_type_set(self): """ Regression test for #1196 https://github.com/encode/django-rest-framework/issues/1196 """ resp = self.client.get('/empty') > self.assertEqual(resp.get('Content-Type', None), None) E AssertionError: 'text/html' != None tests/test_renderers.py:250: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /empty _________ RendererEndToEndTests.test_contains_headers_of_api_response __________ self = def test_contains_headers_of_api_response(self): """ Issue #1437 Test we display the headers of the API response and not those from the HTML response """ resp = self.client.get('/html1') > self.assertContains(resp, '>GET, HEAD, OPTIONS<') tests/test_renderers.py:261: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/test/testcases.py:462: in assertContains text_repr, real_count, msg_prefix = self._assert_contains( /usr/lib/python3.10/site-packages/django/test/testcases.py:432: in _assert_contains self.assertEqual( E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200) ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /html1 ________ RendererEndToEndTests.test_default_renderer_serializes_content ________ self = def test_default_renderer_serializes_content(self): """If the Accept header is not set the default renderer should serialize the response.""" resp = self.client.get('/') > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_renderers.py:165: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererEndToEndTests.test_default_renderer_serializes_content_on_accept_any _ self = def test_default_renderer_serializes_content_on_accept_any(self): """If the Accept header is set to */* the default renderer should serialize the response.""" resp = self.client.get('/', HTTP_ACCEPT='*/*') > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_renderers.py:179: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _________ RendererEndToEndTests.test_head_method_serializes_no_content _________ self = def test_head_method_serializes_no_content(self): """No response must be included in HEAD requests.""" resp = self.client.head('/') > self.assertEqual(resp.status_code, DUMMYSTATUS) E AssertionError: 400 != 200 tests/test_renderers.py:172: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / ________ RendererEndToEndTests.test_parse_error_renderers_browsable_api ________ self = def test_parse_error_renderers_browsable_api(self): """Invalid data should still render the browsable API correctly.""" resp = self.client.post('/parseerror', data='foobar', content_type='application/json', HTTP_ACCEPT='text/html') > self.assertEqual(resp['Content-Type'], 'text/html; charset=utf-8') E AssertionError: 'text/html' != 'text/html; charset=utf-8' E - text/html E + text/html; charset=utf-8 tests/test_renderers.py:240: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /parseerror _ RendererEndToEndTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _ self = def test_specified_renderer_is_used_on_format_query_with_matching_accept(self): """If both a 'format' query and a matching Accept header specified, the renderer with the matching format attribute should serialize the response.""" param = '?%s=%s' % ( api_settings.URL_FORMAT_OVERRIDE, RendererB.format ) resp = self.client.get('/' + param, HTTP_ACCEPT=RendererB.media_type) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_renderers.py:233: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererEndToEndTests.test_specified_renderer_serializes_content_default_case _ self = def test_specified_renderer_serializes_content_default_case(self): """If the Accept header is set the specified renderer should serialize the response. (In this case we check that works for the default renderer)""" resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type) > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_renderers.py:187: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererEndToEndTests.test_specified_renderer_serializes_content_non_default_case _ self = def test_specified_renderer_serializes_content_non_default_case(self): """If the Accept header is set the specified renderer should serialize the response. (In this case we check that works for a non-default renderer)""" resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_renderers.py:195: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_kwargs _ self = def test_specified_renderer_serializes_content_on_format_kwargs(self): """If a 'format' keyword arg is specified, the renderer with the matching format attribute should serialize the response.""" resp = self.client.get('/something.formatb') > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_renderers.py:220: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /something.formatb _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_query _ self = def test_specified_renderer_serializes_content_on_format_query(self): """If a 'format' query is specified, the renderer with the matching format attribute should serialize the response.""" param = '?%s=%s' % ( api_settings.URL_FORMAT_OVERRIDE, RendererB.format ) resp = self.client.get('/' + param) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_renderers.py:212: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererEndToEndTests.test_unsatisfiable_accept_header_on_request_returns_406_status _ self = def test_unsatisfiable_accept_header_on_request_returns_406_status(self): """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response.""" resp = self.client.get('/', HTTP_ACCEPT='foo/bar') > self.assertEqual(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE) E AssertionError: 400 != 406 tests/test_renderers.py:202: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / ________________ JSONRendererTests.test_render_queryset_values _________________ self = sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s)' params = ['dummy'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?)' params = ['dummy'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_dummytestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_render_queryset_values(self): > o = DummyTestModel.objects.create(name='dummy') tests/test_renderers.py:303: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?)' params = ['dummy'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_dummytestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ JSONRendererTests.test_render_queryset_values_list ______________ self = sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s)' params = ['dummy'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?)' params = ['dummy'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_dummytestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_render_queryset_values_list(self): > o = DummyTestModel.objects.create(name='dummy') tests/test_renderers.py:310: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?)' params = ['dummy'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_dummytestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ CacheRenderTest.test_get_caching _______________________ self = def test_get_caching(self): """ Test caching of GET requests """ response = self.client.get('/cache') > cache.set('key', response) tests/test_renderers.py:450: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = ':1:key', value = timeout = , version = None def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None): key = self.make_key(key, version=version) self.validate_key(key) > pickled = pickle.dumps(value, self.pickle_protocol) E AttributeError: Can't pickle local object 'convert_exception_to_response..inner' /usr/lib/python3.10/site-packages/django/core/cache/backends/locmem.py:56: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /cache ______________________ CacheRenderTest.test_head_caching _______________________ self = def test_head_caching(self): """ Test caching of HEAD requests """ response = self.client.head('/cache') > cache.set('key', response) tests/test_renderers.py:439: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = ':1:key', value = timeout = , version = None def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None): key = self.make_key(key, version=version) self.validate_key(key) > pickled = pickle.dumps(value, self.pickle_protocol) E AttributeError: Can't pickle local object 'convert_exception_to_response..inner' /usr/lib/python3.10/site-packages/django/core/cache/backends/locmem.py:56: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /cache ____________ BrowsableAPIRendererTests.test_extra_actions_dropdown _____________ self = def test_extra_actions_dropdown(self): resp = self.client.get('/api/examples/', HTTP_ACCEPT='text/html') > assert 'id="extra-actions-menu"' in resp.content.decode() E AssertionError: assert 'id="extra-actions-menu"' in '\n\n\n\n Bad Request (400)\n\n\n

Bad Request (400)

\n\n\n' E + where '\n\n\n\n Bad Request (400)\n\n\n

Bad Request (400)

\n\n\n' = () E + where = b'\n\n\n\n Bad Request (400)\n\n\n

Bad Request (400)

\n\n\n'.decode E + where b'\n\n\n\n Bad Request (400)\n\n\n

Bad Request (400)

\n\n\n' = .content tests/test_renderers.py:660: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/examples/ ____________ FileUploadTests.test_fileuploads_closed_at_request_end ____________ self = def test_fileuploads_closed_at_request_end(self): with tempfile.NamedTemporaryFile() as f: response = self.client.post('/upload/', {'file': f}) # sanity check that file was processed > assert len(response.data) == 1 E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_request.py:172: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /upload/ _ TestContentParsingWithAuthentication.test_user_logged_in_authentication_has_POST_when_not_logged_in _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$YvxLg2UijfNnbW7RyuGypQ$649d45a5a2bad3b64a6b3c9a26644137', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$YvxLg2UijfNnbW7RyuGypQ$649d45a5a2bad3b64a6b3c9a26644137', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user(self.username, self.email, self.password) tests/test_request.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$YvxLg2UijfNnbW7RyuGypQ$649d45a5a2bad3b64a6b3c9a26644137', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ TestUserSetter.test_calling_user_fails_when_attribute_error_is_raised _____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$JqMGYsVLZ7WUHnrLf1ZogR$e55c123cf58a7a14e03f77762db8bcc8', None, False, 'ringo', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$JqMGYsVLZ7WUHnrLf1ZogR$e55c123cf58a7a14e03f77762db8bcc8', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Pass request object through session middleware so session is # available to login and logout functions self.wrapped_request = factory.get('/') self.request = Request(self.wrapped_request) def dummy_get_response(request): # pragma: no cover return None SessionMiddleware(dummy_get_response).process_request(self.wrapped_request) AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request) > User.objects.create_user('ringo', 'starr@thebeatles.com', 'yellow') tests/test_request.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$JqMGYsVLZ7WUHnrLf1ZogR$e55c123cf58a7a14e03f77762db8bcc8', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestUserSetter.test_logged_in_user_is_set_on_wrapped_request _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$CQKr28TDArnNFRMUuMqTo2$2ed0e4ad548b41b3d6505c5ebf76df4d', None, False, 'ringo', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$CQKr28TDArnNFRMUuMqTo2$2ed0e4ad548b41b3d6505c5ebf76df4d', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Pass request object through session middleware so session is # available to login and logout functions self.wrapped_request = factory.get('/') self.request = Request(self.wrapped_request) def dummy_get_response(request): # pragma: no cover return None SessionMiddleware(dummy_get_response).process_request(self.wrapped_request) AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request) > User.objects.create_user('ringo', 'starr@thebeatles.com', 'yellow') tests/test_request.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$CQKr28TDArnNFRMUuMqTo2$2ed0e4ad548b41b3d6505c5ebf76df4d', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TestUserSetter.test_user_can_be_set ______________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$ZN8OaocQWXsZ2yTua8YJz2$3c60a165af7051facb9639bc40cbce6a', None, False, 'ringo', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ZN8OaocQWXsZ2yTua8YJz2$3c60a165af7051facb9639bc40cbce6a', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Pass request object through session middleware so session is # available to login and logout functions self.wrapped_request = factory.get('/') self.request = Request(self.wrapped_request) def dummy_get_response(request): # pragma: no cover return None SessionMiddleware(dummy_get_response).process_request(self.wrapped_request) AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request) > User.objects.create_user('ringo', 'starr@thebeatles.com', 'yellow') tests/test_request.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ZN8OaocQWXsZ2yTua8YJz2$3c60a165af7051facb9639bc40cbce6a', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________________ TestUserSetter.test_user_can_login ______________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$0QzVVxCVhEsjDYIKbpCFcp$df25c51701e9c3390defb717abf8282e', None, False, 'ringo', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$0QzVVxCVhEsjDYIKbpCFcp$df25c51701e9c3390defb717abf8282e', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Pass request object through session middleware so session is # available to login and logout functions self.wrapped_request = factory.get('/') self.request = Request(self.wrapped_request) def dummy_get_response(request): # pragma: no cover return None SessionMiddleware(dummy_get_response).process_request(self.wrapped_request) AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request) > User.objects.create_user('ringo', 'starr@thebeatles.com', 'yellow') tests/test_request.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$0QzVVxCVhEsjDYIKbpCFcp$df25c51701e9c3390defb717abf8282e', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TestUserSetter.test_user_can_logout ______________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$2VVoJ6lD8avq4adkm5hBSx$f9cb8d7a164a391206b484601e00b52c', None, False, 'ringo', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$2VVoJ6lD8avq4adkm5hBSx$f9cb8d7a164a391206b484601e00b52c', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): # Pass request object through session middleware so session is # available to login and logout functions self.wrapped_request = factory.get('/') self.request = Request(self.wrapped_request) def dummy_get_response(request): # pragma: no cover return None SessionMiddleware(dummy_get_response).process_request(self.wrapped_request) AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request) > User.objects.create_user('ringo', 'starr@thebeatles.com', 'yellow') tests/test_request.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$2VVoJ6lD8avq4adkm5hBSx$f9cb8d7a164a391206b484601e00b52c', None, False, 'ringo', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestHttpRequest.test_duplicate_request_form_data_access ____________ self = @override_settings(ROOT_URLCONF='tests.test_request') def test_duplicate_request_form_data_access(self): """ Form data is copied to the underlying django request for middleware and file closing reasons. Duplicate processing of a request with form data is 'safe' in so far as accessing `request.POST` does not trigger the duplicate stream parse exception. """ response = APIClient().post('/echo/', data={'a': 'b'}) > request = response._request E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request' tests/test_request.py:334: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /echo/ _______ TestHttpRequest.test_duplicate_request_stream_parsing_exception ________ self = @override_settings(ROOT_URLCONF='tests.test_request') def test_duplicate_request_stream_parsing_exception(self): """ Check assumption that duplicate stream parsing will result in a `RawPostDataException` being raised. """ response = APIClient().post('/echo/', data={'a': 'b'}, format='json') > request = response._request E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request' tests/test_request.py:315: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /echo/ ______ RendererIntegrationTests.test_default_renderer_serializes_content _______ self = def test_default_renderer_serializes_content(self): """If the Accept header is not set the default renderer should serialize the response.""" resp = self.client.get('/') > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_response.py:141: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererIntegrationTests.test_default_renderer_serializes_content_on_accept_any _ self = def test_default_renderer_serializes_content_on_accept_any(self): """If the Accept header is set to */* the default renderer should serialize the response.""" resp = self.client.get('/', HTTP_ACCEPT='*/*') > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_response.py:155: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _______ RendererIntegrationTests.test_head_method_serializes_no_content ________ self = def test_head_method_serializes_no_content(self): """No response must be included in HEAD requests.""" resp = self.client.head('/') > self.assertEqual(resp.status_code, DUMMYSTATUS) E AssertionError: 400 != 200 tests/test_response.py:148: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererIntegrationTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _ self = def test_specified_renderer_is_used_on_format_query_with_matching_accept(self): """If both a 'format' query and a matching Accept header specified, the renderer with the matching format attribute should serialize the response.""" resp = self.client.get('/?format=%s' % RendererB.format, HTTP_ACCEPT=RendererB.media_type) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_response.py:196: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererIntegrationTests.test_specified_renderer_serializes_content_default_case _ self = def test_specified_renderer_serializes_content_default_case(self): """If the Accept header is set the specified renderer should serialize the response. (In this case we check that works for the default renderer)""" resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type) > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/renderera; charset=utf-8' E - text/html E + mock/renderera; charset=utf-8 tests/test_response.py:163: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererIntegrationTests.test_specified_renderer_serializes_content_non_default_case _ self = def test_specified_renderer_serializes_content_non_default_case(self): """If the Accept header is set the specified renderer should serialize the response. (In this case we check that works for a non-default renderer)""" resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_response.py:171: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_kwargs _ self = def test_specified_renderer_serializes_content_on_format_kwargs(self): """If a 'format' keyword arg is specified, the renderer with the matching format attribute should serialize the response.""" resp = self.client.get('/something.formatb') > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_response.py:187: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /something.formatb _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_query _ self = def test_specified_renderer_serializes_content_on_format_query(self): """If a 'format' query is specified, the renderer with the matching format attribute should serialize the response.""" resp = self.client.get('/?format=%s' % RendererB.format) > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8') E AssertionError: 'text/html' != 'mock/rendererb; charset=utf-8' E - text/html E + mock/rendererb; charset=utf-8 tests/test_response.py:179: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / ___________ UnsupportedMediaTypeTests.test_should_allow_posting_json ___________ self = def test_should_allow_posting_json(self): response = self.client.post('/json', data='{"test": 123}', content_type='application/json') > self.assertEqual(response.status_code, 200) E AssertionError: 400 != 200 tests/test_response.py:206: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /json ________ UnsupportedMediaTypeTests.test_should_not_allow_posting_a_form ________ self = def test_should_not_allow_posting_a_form(self): response = self.client.post('/json', data={'test': 123}) > self.assertEqual(response.status_code, 415) E AssertionError: 400 != 415 tests/test_response.py:216: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /json _________ UnsupportedMediaTypeTests.test_should_not_allow_posting_xml __________ self = def test_should_not_allow_posting_xml(self): response = self.client.post('/json', data='123', content_type='application/xml') > self.assertEqual(response.status_code, 415) E AssertionError: 400 != 415 tests/test_response.py:211: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /json _______________ Issue467Tests.test_form_has_label_and_help_text ________________ self = def test_form_has_label_and_help_text(self): resp = self.client.get('/html_new_model') > self.assertEqual(resp['Content-Type'], 'text/html; charset=utf-8') E AssertionError: 'text/html' != 'text/html; charset=utf-8' E - text/html E + text/html; charset=utf-8 tests/test_response.py:244: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /html_new_model __________ Issue807Tests.test_content_type_set_explicitly_on_response __________ self = def test_content_type_set_explicitly_on_response(self): """ The content type may be set explicitly on the response. """ headers = {"HTTP_ACCEPT": RendererC.media_type} resp = self.client.get('/setbyview', **headers) > self.assertEqual('setbyview', resp['Content-Type']) E AssertionError: 'setbyview' != 'text/html' E - setbyview E + text/html tests/test_response.py:279: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /setbyview ____________ Issue807Tests.test_does_not_append_charset_by_default _____________ self = def test_does_not_append_charset_by_default(self): """ Renderers don't include a charset unless set explicitly. """ headers = {"HTTP_ACCEPT": RendererA.media_type} resp = self.client.get('/', **headers) expected = "{}; charset={}".format(RendererA.media_type, 'utf-8') > self.assertEqual(expected, resp['Content-Type']) E AssertionError: 'mock/renderera; charset=utf-8' != 'text/html' E - mock/renderera; charset=utf-8 E + text/html tests/test_response.py:261: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _______________ Issue807Tests.test_form_has_label_and_help_text ________________ self = def test_form_has_label_and_help_text(self): resp = self.client.get('/html_new_model') > self.assertEqual(resp['Content-Type'], 'text/html; charset=utf-8') E AssertionError: 'text/html' != 'text/html; charset=utf-8' E - text/html E + text/html; charset=utf-8 tests/test_response.py:283: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /html_new_model _ Issue807Tests.test_if_there_is_charset_specified_on_renderer_it_gets_appended _ self = def test_if_there_is_charset_specified_on_renderer_it_gets_appended(self): """ If renderer class has charset attribute declared, it gets appended to Response's Content-Type """ headers = {"HTTP_ACCEPT": RendererC.media_type} resp = self.client.get('/', **headers) expected = "{}; charset={}".format(RendererC.media_type, RendererC.charset) > self.assertEqual(expected, resp['Content-Type']) E AssertionError: 'mock/rendererc; charset=rendererc' != 'text/html' E - mock/rendererc; charset=rendererc E + text/html tests/test_response.py:271: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _ ReverseTests.test_reverse_with_versioning_scheme_fallback_to_default_on_error _ viewname = 'view', args = None, kwargs = None request = , format = None, extra = {} scheme = def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra): """ If versioning is being used then we pass any `reverse` calls through to the versioning scheme instance, so that the resulting URL can be modified if needed. """ scheme = getattr(request, 'versioning_scheme', None) if scheme is not None: try: > url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ('view', None, None, , None), kwargs = {} def reverse(self, *args, **kwargs): if self.raise_error: > raise NoReverseMatch() E django.urls.exceptions.NoReverseMatch tests/test_reverse.py:26: NoReverseMatch During handling of the above exception, another exception occurred: self = def test_reverse_with_versioning_scheme_fallback_to_default_on_error(self): request = factory.get('/view') request.versioning_scheme = MockVersioningScheme(raise_error=True) > url = reverse('view', request=request) tests/test_reverse.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/reverse.py:45: in reverse url = _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____________ ReverseTests.test_reversed_urls_are_fully_qualified ______________ self = def test_reversed_urls_are_fully_qualified(self): request = factory.get('/view') > url = reverse('view', request=request) tests/test_reverse.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/reverse.py:47: in reverse url = _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ________________ TestSimpleRouter.test_multiple_action_handlers ________________ self = def test_multiple_action_handlers(self): # Standard action response = self.client.post(reverse('basic-action3', args=[1])) > assert response.data == {'post': '1'} E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_routers.py:150: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/basics/1/action3/ __________________ TestRootView.test_retrieve_namespaced_root __________________ self = def test_retrieve_namespaced_root(self): response = self.client.get('/namespaced/') > assert response.data == {"example": "http://testserver/namespaced/example/"} E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_routers.py:171: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /namespaced/ ________________ TestRootView.test_retrieve_non_namespaced_root ________________ self = def test_retrieve_non_namespaced_root(self): response = self.client.get('/non-namespaced/') > assert response.data == {"example": "http://testserver/non-namespaced/example/"} E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_routers.py:175: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /non-namespaced/ ____________ TestCustomLookupFields.test_custom_lookup_field_route _____________ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TestCustomLookupFields.test_retrieve_lookup_field_detail_view _________ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestCustomLookupFields.test_retrieve_lookup_field_list_view __________ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ TestCustomLookupFields.test_retrieve_lookup_field_url_encoded_detail_view_ __ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ TestLookupUrlKwargs.test_custom_lookup_url_kwarg_route ____________ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____ TestLookupUrlKwargs.test_retrieve_lookup_url_encoded_kwarg_detail_view ____ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TestLookupUrlKwargs.test_retrieve_lookup_url_kwarg_detail_view ________ self = sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s)' params = ['123', 'foo bar'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > RouterTestModel.objects.create(uuid='123', text='foo bar') tests/test_routers.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?)' params = ['123', 'foo bar'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_routertestmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestEmptyPrefix.test_empty_prefix_detail ___________________ self = def test_empty_prefix_detail(self): response = self.client.get('/empty-prefix/1/') > assert response.status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_routers.py:439: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /empty-prefix/1/ ____________________ TestEmptyPrefix.test_empty_prefix_list ____________________ self = def test_empty_prefix_list(self): response = self.client.get('/empty-prefix/') > assert response.status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_routers.py:433: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /empty-prefix/ _________________ TestRegexUrlPath.test_regex_url_path_detail __________________ self = def test_regex_url_path_detail(self): pk = '1' kwarg = '1234' response = self.client.get('/regex/{}/detail/{}/'.format(pk, kwarg)) > assert response.status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_routers.py:458: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /regex/1/detail/1234/ __________________ TestRegexUrlPath.test_regex_url_path_list ___________________ self = def test_regex_url_path_list(self): kwarg = '1234' response = self.client.get('/regex/list/{}/'.format(kwarg)) > assert response.status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_routers.py:451: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /regex/list/1234/ ______________________ TestAPITestClient.test_can_logout _______________________ self = def test_can_logout(self): """ `logout()` resets stored credentials """ self.client.credentials(HTTP_AUTHORIZATION='example') response = self.client.get('/view/') > assert response.data['auth'] == 'example' E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_testing.py:128: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /view/ ______________________ TestAPITestClient.test_credentials ______________________ self = def test_credentials(self): """ Setting `.credentials()` adds the required headers to each request. """ self.client.credentials(HTTP_AUTHORIZATION='example') for _ in range(0, 3): response = self.client.get('/view/') > assert response.data['auth'] == 'example' E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data' tests/test_testing.py:70: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /view/ ________________ TestAPITestClient.test_csrf_exempt_by_default _________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$FPrBUKAlpbq99hMeiKBaWx$8e0c4522e959f6ba7598e55d60de392d', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$FPrBUKAlpbq99hMeiKBaWx$8e0c4522e959f6ba7598e55d60de392d', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_csrf_exempt_by_default(self): """ By default, the test client is CSRF exempt. """ > User.objects.create_user('example', 'example@example.com', 'password') tests/test_testing.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$FPrBUKAlpbq99hMeiKBaWx$8e0c4522e959f6ba7598e55d60de392d', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestAPITestClient.test_empty_post_uses_default_boolean_value _________ self = def test_empty_post_uses_default_boolean_value(self): response = self.client.post( '/post-view/', data=None, content_type='application/json' ) > assert response.status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_testing.py:201: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /post-view/ ____________ TestAPITestClient.test_explicitly_enforce_csrf_checks _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$TjXkddHlXC58XwmbfY0us9$03db33f8d4b0929ef29e9eecddeef8c1', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TjXkddHlXC58XwmbfY0us9$03db33f8d4b0929ef29e9eecddeef8c1', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_explicitly_enforce_csrf_checks(self): """ The test client can enforce CSRF checks. """ client = APIClient(enforce_csrf_checks=True) > User.objects.create_user('example', 'example@example.com', 'password') tests/test_testing.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$TjXkddHlXC58XwmbfY0us9$03db33f8d4b0929ef29e9eecddeef8c1', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________________ TestAPITestClient.test_follow_redirect ____________________ self = def test_follow_redirect(self): """ Follow redirect by setting follow argument. """ response = self.client.get('/redirect-view/') > assert response.status_code == 302 E AssertionError: assert 400 == 302 E +400 E -302 tests/test_testing.py:150: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /redirect-view/ __________________ TestAPITestClient.test_force_authenticate ___________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!rI0iu7TWayfULVdIMq9SIoIP1cBXyYtwXwRVVZ12', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!rI0iu7TWayfULVdIMq9SIoIP1cBXyYtwXwRVVZ12', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_force_authenticate(self): """ Setting `.force_authenticate()` forcibly authenticates each request. """ > user = User.objects.create_user('example', 'example@example.com') tests/test_testing.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!rI0iu7TWayfULVdIMq9SIoIP1cBXyYtwXwRVVZ12', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestAPITestClient.test_force_authenticate_with_sessions ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!UKNNWmMb3O3bxC7ObqvG1sLU9cK43omFZSgQWcOP', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!UKNNWmMb3O3bxC7ObqvG1sLU9cK43omFZSgQWcOP', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_force_authenticate_with_sessions(self): """ Setting `.force_authenticate()` forcibly authenticates each request. """ > user = User.objects.create_user('example', 'example@example.com') tests/test_testing.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!UKNNWmMb3O3bxC7ObqvG1sLU9cK43omFZSgQWcOP', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestAPITestClient.test_logout_resets_force_authenticate ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$7C0VBa8dL2pNT5h77xOEM2$7aa2cde16a3911d5664ffe1fc547a620', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$7C0VBa8dL2pNT5h77xOEM2$7aa2cde16a3911d5664ffe1fc547a620', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_logout_resets_force_authenticate(self): """ `logout()` resets any `force_authenticate` """ > user = User.objects.create_user('example', 'example@example.com', 'password') tests/test_testing.py:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$7C0VBa8dL2pNT5h77xOEM2$7aa2cde16a3911d5664ffe1fc547a620', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TestAPIRequestFactory.test_csrf_exempt_by_default _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$SSVcxlxITe6yUFLZQNUjPy$1656e14621b9d2da00bf3755fcc71b31', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$SSVcxlxITe6yUFLZQNUjPy$1656e14621b9d2da00bf3755fcc71b31', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_csrf_exempt_by_default(self): """ By default, the test client is CSRF exempt. """ > user = User.objects.create_user('example', 'example@example.com', 'password') tests/test_testing.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$SSVcxlxITe6yUFLZQNUjPy$1656e14621b9d2da00bf3755fcc71b31', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ TestAPIRequestFactory.test_explicitly_enforce_csrf_checks ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$C1RrC1sJjen61raN82D9QQ$04b2a9e87546abd823f99ee6be184321', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$C1RrC1sJjen61raN82D9QQ$04b2a9e87546abd823f99ee6be184321', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_explicitly_enforce_csrf_checks(self): """ The test client can enforce CSRF checks. """ > user = User.objects.create_user('example', 'example@example.com', 'password') tests/test_testing.py:221: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$C1RrC1sJjen61raN82D9QQ$04b2a9e87546abd823f99ee6be184321', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ TestAPIRequestFactory.test_force_authenticate _________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['!dDCHlbz26gJhl2KwevkObKkAi2s3kmweKl6MBU7s', None, False, 'example', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!dDCHlbz26gJhl2KwevkObKkAi2s3kmweKl6MBU7s', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_force_authenticate(self): """ Setting `force_authenticate()` forcibly authenticates the request. """ > user = User.objects.create_user('example', 'example@example.com') tests/test_testing.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['!dDCHlbz26gJhl2KwevkObKkAi2s3kmweKl6MBU7s', None, False, 'example', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestUrlPatternTestCase.test_urlpatterns ____________________ self = def test_urlpatterns(self): > assert self.client.get('/').status_code == 200 E AssertionError: assert 400 == 200 E +400 E -200 tests/test_testing.py:315: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / ____________________ TestExistingPatterns.test_urlpatterns _____________________ self = def test_urlpatterns(self): # sanity test to ensure that this test module does not have a '/' route > assert self.client.get('/').status_code == 404 E AssertionError: assert 400 == 404 E +400 E -404 tests/test_testing.py:321: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: / _____________ ThrottlingTests.test_request_throttling_is_per_user ______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['', None, False, 'a', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'a', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_request_throttling_is_per_user(self): """ Ensure request rate is only limited per user, not globally for PerUserThrottles """ > self.ensure_is_throttled(MockView, 200) tests/test_throttling.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_throttling.py:117: in ensure_is_throttled request.user = User.objects.create(username='a') /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'a', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ ScopedRateThrottleTests.test_get_cache_key_returns_correct_key_if_user_is_authenticated _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['', None, False, 'test', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'test', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_get_cache_key_returns_correct_key_if_user_is_authenticated(self): class DummyView: throttle_scope = 'user' request = Request(HttpRequest()) > user = User.objects.create(username='test') tests/test_throttling.py:367: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'test', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ AnonRateThrottleTests.test_authenticated_user_not_affected __________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['', None, False, 'test', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'test', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_authenticated_user_not_affected(self): request = Request(HttpRequest()) > user = User.objects.create(username='test') tests/test_throttling.py:507: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['', None, False, 'test', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TestMaxValueValidatorValidation.test_max_value_validation_fail ________ self = sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s)' params = [100] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?)' params = [100] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_max_value_validation_fail(self): > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100) tests/test_validation.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?)' params = [100] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ TestMaxValueValidatorValidation.test_max_value_validation_success _______ self = sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s)' params = [100] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?)' params = [100] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_max_value_validation_success(self): > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100) tests/test_validation.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?)' params = [100] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TestUniquenessValidation.test_doesnt_pollute_model ______________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ TestUniquenessValidation.test_is_not_unique __________________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ TestUniquenessValidation.test_is_unique ____________________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ TestUniquenessValidation.test_related_model_is_unique _____________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________________ TestUniquenessValidation.test_repr ______________________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestUniquenessValidation.test_updated_instance_excluded ____________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ TestUniquenessValidation.test_value_error_treated_as_not_unique ________ self = sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s)' params = ['existing'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessModel.objects.create(username='existing') tests/test_validators.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?)' params = ['existing'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenessmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestUniquenessTogetherValidation.test_allow_explict_override _________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_default_validator_with_fields_with_source _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_default_validator_with_multiple_fields_with_same_source _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_do_not_ignore_validation_for_null_fields _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_filter_queryset_do_not_skip_existing_attribute _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestUniquenessTogetherValidation.test_ignore_excluded_fields _________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TestUniquenessTogetherValidation.test_ignore_read_only_fields _________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ TestUniquenessTogetherValidation.test_ignore_validation_for_null_fields ____ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestUniquenessTogetherValidation.test_is_not_unique_together _________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestUniquenessTogetherValidation.test_is_unique_together ___________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ TestUniquenessTogetherValidation.test_read_only_fields_with_default ______ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_read_only_fields_with_default_and_source _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestUniquenessTogetherValidation.test_repr __________________ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ TestUniquenessTogetherValidation.test_unique_together_is_required _______ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessTogetherValidation.test_updated_instance_excluded_from_unique_together _ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ TestUniquenessTogetherValidation.test_writeable_fields_with_source ______ self = sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s)' params = ['example', 1] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniquenessTogetherModel.objects.create( race_name='example', position=1 ) tests/test_validators.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?)' params = ['example', 1] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ TestUniquenessForDateValidation.test_is_not_unique_for_date __________ self = sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2000-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForDateModel.objects.create( slug='existing', published='2000-01-01' ) tests/test_validators.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ TestUniquenessForDateValidation.test_is_unique_for_date ____________ self = sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2000-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForDateModel.objects.create( slug='existing', published='2000-01-01' ) tests/test_validators.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestUniquenessForDateValidation.test_repr ___________________ self = sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2000-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForDateModel.objects.create( slug='existing', published='2000-01-01' ) tests/test_validators.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ TestUniquenessForDateValidation.test_updated_instance_excluded_from_unique_for_date _ self = sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2000-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForDateModel.objects.create( slug='existing', published='2000-01-01' ) tests/test_validators.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2000-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ UniqueForMonthTests.test_not_unique_for_month _________________ self = sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2017-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForMonthModel.objects.create( slug='existing', published='2017-01-01' ) tests/test_validators.py:541: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ UniqueForMonthTests.test_unique_for_month ___________________ self = sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2017-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForMonthModel.objects.create( slug='existing', published='2017-01-01' ) tests/test_validators.py:541: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________________ UniqueForYearTests.test_not_unique_for_year __________________ self = sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2017-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForYearModel.objects.create( slug='existing', published='2017-01-01' ) tests/test_validators.py:580: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________________ UniqueForYearTests.test_unique_for_year ____________________ self = sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s)' params = ['existing', '2017-01-01'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.instance = UniqueForYearModel.objects.create( slug='existing', published='2017-01-01' ) tests/test_validators.py:580: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?)' params = ['existing', '2017-01-01'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TestURLReversing.test_reverse_namespace_versioning ______________ self = def test_reverse_namespace_versioning(self): class FakeResolverMatch: namespace = 'v1' scheme = versioning.NamespaceVersioning view = ReverseView.as_view(versioning_class=scheme) request = factory.get('/v1/endpoint/') request.resolver_match = FakeResolverMatch > response = view(request, version='v1') tests/test_versioning.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_versioning.py:23: in get return Response({'url': reverse('another', request=request)}) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:133: in reverse return super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _____________ TestURLReversing.test_reverse_query_param_versioning _____________ self = def test_reverse_query_param_versioning(self): scheme = versioning.QueryParameterVersioning view = ReverseView.as_view(versioning_class=scheme) request = factory.get('/endpoint/?version=v1') > response = view(request) tests/test_versioning.py:169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_versioning.py:23: in get return Response({'url': reverse('another', request=request)}) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:179: in reverse url = super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost __________________ TestURLReversing.test_reverse_unversioned ___________________ self = def test_reverse_unversioned(self): view = ReverseView.as_view() request = factory.get('/endpoint/') > response = view(request) tests/test_versioning.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_versioning.py:23: in get return Response({'url': reverse('another', request=request)}) rest_framework/reverse.py:47: in reverse url = _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost ______________ TestURLReversing.test_reverse_url_path_versioning _______________ self = def test_reverse_url_path_versioning(self): scheme = versioning.URLPathVersioning view = ReverseView.as_view(versioning_class=scheme) request = factory.get('/v1/endpoint/') > response = view(request, version='v1') tests/test_versioning.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/views/decorators/csrf.py:54: in wrapped_view return view_func(*args, **kwargs) /usr/lib/python3.10/site-packages/django/views/generic/base.py:70: in view return self.dispatch(request, *args, **kwargs) rest_framework/views.py:509: in dispatch response = self.handle_exception(exc) rest_framework/views.py:469: in handle_exception self.raise_uncaught_exception(exc) rest_framework/views.py:480: in raise_uncaught_exception raise exc rest_framework/views.py:506: in dispatch response = handler(request, *args, **kwargs) tests/test_versioning.py:23: in get return Response({'url': reverse('another', request=request)}) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:87: in reverse return super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_nested _ self = def test_api_url_is_properly_reversed_with_nested(self): field = self._create_field('nested', 'v1:nested-namespace') > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/nested/namespaced/3/' tests/test_versioning.py:379: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/relations.py:401: in to_representation url = self.get_url(value, self.view_name, request, format) rest_framework/relations.py:339: in get_url return self.reverse(view_name, kwargs=kwargs, request=request, format=format) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:133: in reverse return super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v1 _ self = def test_api_url_is_properly_reversed_with_v1(self): field = self._create_field('namespaced', 'v1') > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/namespaced/3/' tests/test_versioning.py:371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/relations.py:401: in to_representation url = self.get_url(value, self.view_name, request, format) rest_framework/relations.py:339: in get_url return self.reverse(view_name, kwargs=kwargs, request=request, format=format) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:133: in reverse return super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v2 _ self = def test_api_url_is_properly_reversed_with_v2(self): field = self._create_field('namespaced', 'v2') > assert field.to_representation(PKOnlyObject(5)) == 'http://testserver/v2/namespaced/5/' tests/test_versioning.py:375: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/relations.py:401: in to_representation url = self.get_url(value, self.view_name, request, format) rest_framework/relations.py:339: in get_url return self.reverse(view_name, kwargs=kwargs, request=request, format=format) rest_framework/reverse.py:41: in reverse url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:133: in reverse return super().reverse( rest_framework/versioning.py:25: in reverse return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_non_api_url_is_properly_reversed_regardless_of_the_version _ viewname = 'non-api-view', args = None, kwargs = {'pk': 10} request = , format = None, extra = {} scheme = def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra): """ If versioning is being used then we pass any `reverse` calls through to the versioning scheme instance, so that the resulting URL can be modified if needed. """ scheme = getattr(request, 'versioning_scheme', None) if scheme is not None: try: > url = scheme.reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = viewname = 'v1:non-api-view', args = None, kwargs = {'pk': 10} request = , format = None, extra = {} def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): if request.version is not None: viewname = self.get_versioned_viewname(viewname, request) > return super().reverse( viewname, args, kwargs, request, format, **extra ) rest_framework/versioning.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = viewname = 'v1:non-api-view', args = None, kwargs = {'pk': 10} request = , format = None, extra = {} def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): > return _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/versioning.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ viewname = 'v1:non-api-view', args = None, kwargs = {'pk': 10} request = , format = None, extra = {} def _reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra): """ Same as `django.urls.reverse`, but optionally takes a request and returns a fully qualified URL, using the request to get the base URL. """ if format is not None: kwargs = kwargs or {} kwargs['format'] = format > url = django_reverse(viewname, args=args, kwargs=kwargs, **extra) rest_framework/reverse.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ viewname = 'v1:non-api-view', urlconf = None, args = [], kwargs = {'pk': 10} current_app = None def reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None): if urlconf is None: urlconf = get_urlconf() resolver = get_resolver(urlconf) args = args or [] kwargs = kwargs or {} prefix = get_script_prefix() if not isinstance(viewname, str): view = viewname else: *path, view = viewname.split(':') if current_app: current_path = current_app.split(':') current_path.reverse() else: current_path = None resolved_path = [] ns_pattern = '' ns_converters = {} for ns in path: current_ns = current_path.pop() if current_path else None # Lookup the name to see if it could be an app identifier. try: app_list = resolver.app_dict[ns] # Yes! Path part matches an app in the current Resolver. if current_ns and current_ns in app_list: # If we are reversing for a particular app, use that # namespace. ns = current_ns elif ns not in app_list: # The name isn't shared by one of the instances (i.e., # the default) so pick the first instance as the default. ns = app_list[0] except KeyError: pass if ns != current_ns: current_path = None try: extra, resolver = resolver.namespace_dict[ns] resolved_path.append(ns) ns_pattern = ns_pattern + extra ns_converters.update(resolver.pattern.converters) except KeyError as key: if resolved_path: raise NoReverseMatch( "%s is not a registered namespace inside '%s'" % (key, ':'.join(resolved_path)) ) else: raise NoReverseMatch("%s is not a registered namespace" % key) if ns_pattern: resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items())) > return resolver._reverse_with_prefix(view, prefix, *args, **kwargs) /usr/lib/python3.10/site-packages/django/urls/base.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = (None:None) '^/'> lookup_view = 'non-api-view', _prefix = '/', args = (), kwargs = {'pk': 10} possibilities = [] def _reverse_with_prefix(self, lookup_view, _prefix, *args, **kwargs): if args and kwargs: raise ValueError("Don't mix *args and **kwargs in call to reverse()!") if not self._populated: self._populate() possibilities = self.reverse_dict.getlist(lookup_view) for possibility, pattern, defaults, converters in possibilities: for result, params in possibility: if args: if len(args) != len(params): continue candidate_subs = dict(zip(params, args)) else: if set(kwargs).symmetric_difference(params).difference(defaults): continue if any(kwargs.get(k, v) != v for k, v in defaults.items()): continue candidate_subs = kwargs # Convert the candidate subs to text using Converter.to_url(). text_candidate_subs = {} match = True for k, v in candidate_subs.items(): if k in converters: try: text_candidate_subs[k] = converters[k].to_url(v) except ValueError: match = False break else: text_candidate_subs[k] = str(v) if not match: continue # WSGI provides decoded URLs, without %xx escapes, and the URL # resolver operates on such URLs. First substitute arguments # without quoting to build a decoded URL and look for a match. # Then, if we have a match, redo the substitution with quoted # arguments in order to return a properly encoded URL. candidate_pat = _prefix.replace('%', '%%') + result if re.search('^%s%s' % (re.escape(_prefix), pattern), candidate_pat % text_candidate_subs): # safe characters from `pchar` definition of RFC 3986 url = quote(candidate_pat % text_candidate_subs, safe=RFC3986_SUBDELIMS + '/~:@') # Don't allow construction of scheme relative urls. return escape_leading_slashes(url) # lookup_view can be URL name or callable, but callables are not # friendly in error messages. m = getattr(lookup_view, '__module__', None) n = getattr(lookup_view, '__name__', None) if m is not None and n is not None: lookup_view_s = "%s.%s" % (m, n) else: lookup_view_s = lookup_view patterns = [pattern for (_, pattern, _, _) in possibilities] if patterns: if args: arg_msg = "arguments '%s'" % (args,) elif kwargs: arg_msg = "keyword arguments '%s'" % kwargs else: arg_msg = "no arguments" msg = ( "Reverse for '%s' with %s not found. %d pattern(s) tried: %s" % (lookup_view_s, arg_msg, len(patterns), patterns) ) else: msg = ( "Reverse for '%(view)s' not found. '%(view)s' is not " "a valid view function or pattern name." % {'view': lookup_view_s} ) > raise NoReverseMatch(msg) E django.urls.exceptions.NoReverseMatch: Reverse for 'non-api-view' not found. 'non-api-view' is not a valid view function or pattern name. /usr/lib/python3.10/site-packages/django/urls/resolvers.py:698: NoReverseMatch During handling of the above exception, another exception occurred: self = def test_non_api_url_is_properly_reversed_regardless_of_the_version(self): """ Regression test for #2711 """ field = self._create_field('non-api-view', 'v1') > assert field.to_representation(PKOnlyObject(10)) == 'http://testserver/non-api/10/' tests/test_versioning.py:386: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/relations.py:401: in to_representation url = self.get_url(value, self.view_name, request, format) rest_framework/relations.py:339: in get_url return self.reverse(view_name, kwargs=kwargs, request=request, format=format) rest_framework/reverse.py:45: in reverse url = _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _________________ GetExtraActionUrlMapTests.test_action_names __________________ self = def test_action_names(self): # Action 'name' and 'suffix' kwargs should be respected response = self.client.get('/api/names/1/') > view = response.view E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view' tests/test_viewsets.py:291: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/names/1/ __________________ GetExtraActionUrlMapTests.test_detail_view __________________ self = def test_detail_view(self): response = self.client.get('/api/actions/1/') > view = response.view E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view' tests/test_viewsets.py:274: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/actions/1/ ___________________ GetExtraActionUrlMapTests.test_list_view ___________________ self = def test_list_view(self): response = self.client.get('/api/actions/') > view = response.view E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view' tests/test_viewsets.py:262: AttributeError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/actions/ ___________________ ReverseActionTests.test_request_passing ____________________ self = def test_request_passing(self): view = ActionViewSet() view.basename = router.get_default_basename(ActionViewSet) view.request = factory.get('/') # Passing the view's request object should result in an absolute URL. > assert view.reverse_action('list') == 'http://testserver/api/actions/' tests/test_viewsets.py:336: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/viewsets.py:169: in reverse_action return reverse(url_name, *args, **kwargs) rest_framework/reverse.py:47: in reverse url = _reverse(viewname, args, kwargs, request, format, **extra) rest_framework/reverse.py:62: in _reverse return request.build_absolute_uri(url) /usr/lib/python3.10/site-packages/django/http/request.py:236: in build_absolute_uri location = self._current_scheme_host + location /usr/lib/python3.10/site-packages/django/utils/functional.py:48: in __get__ res = instance.__dict__[self.name] = self.func(instance) /usr/lib/python3.10/site-packages/django/http/request.py:246: in _current_scheme_host return '{}://{}'.format(self.scheme, self.get_host()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_host(self): """Return the HTTP host using the environment or request headers.""" host = self._get_raw_host() # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True. allowed_hosts = settings.ALLOWED_HOSTS if settings.DEBUG and not allowed_hosts: allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] domain, port = split_domain_port(host) if domain and validate_host(domain, allowed_hosts): return host else: msg = "Invalid HTTP_HOST header: %r." % host if domain: msg += " You may need to add %r to ALLOWED_HOSTS." % domain else: msg += " The domain name provided is not valid according to RFC 1034/1035." > raise DisallowedHost(msg) E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. /usr/lib/python3.10/site-packages/django/http/request.py:149: DisallowedHost _______________ BasicAuthTests.test_decoding_of_utf8_credentials _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$3uOSnepkgP3ynPo5OOWOAi$67ca4ec3e42d718b024ec35014b970cd', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$3uOSnepkgP3ynPo5OOWOAi$67ca4ec3e42d718b024ec35014b970cd', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$3uOSnepkgP3ynPo5OOWOAi$67ca4ec3e42d718b024ec35014b970cd', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ BasicAuthTests.test_fail_post_if_credentials_are_missing ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$aZlNIkr9x38myhdI7ns2uJ$8b21712e36fc7283ccfa1b1906729267', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$aZlNIkr9x38myhdI7ns2uJ$8b21712e36fc7283ccfa1b1906729267', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$aZlNIkr9x38myhdI7ns2uJ$8b21712e36fc7283ccfa1b1906729267', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ BasicAuthTests.test_fail_post_if_credentials_contain_spaces __________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$YoXjZWVMKAufgZBEZGA9Iq$1fafd2ecc1035f1630291577b68d26da', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$YoXjZWVMKAufgZBEZGA9Iq$1fafd2ecc1035f1630291577b68d26da', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$YoXjZWVMKAufgZBEZGA9Iq$1fafd2ecc1035f1630291577b68d26da', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ BasicAuthTests.test_post_form_failing_basic_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$rm6qHTmvjRxHbCQGmLvDW4$06adaf82b12bd2ed2e4ce2a9930bedc7', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$rm6qHTmvjRxHbCQGmLvDW4$06adaf82b12bd2ed2e4ce2a9930bedc7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$rm6qHTmvjRxHbCQGmLvDW4$06adaf82b12bd2ed2e4ce2a9930bedc7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ BasicAuthTests.test_post_form_passing_basic_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$LyaE1QkvQRH8qVjMoktLVy$310a550cc8f80b0d41f30253c1c81079', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$LyaE1QkvQRH8qVjMoktLVy$310a550cc8f80b0d41f30253c1c81079', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$LyaE1QkvQRH8qVjMoktLVy$310a550cc8f80b0d41f30253c1c81079', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ BasicAuthTests.test_post_json_failing_basic_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$5kf4TnnOWmp6xMN2rXhwlw$fc32732d8fdfe200b80bc1f69fe7e712', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$5kf4TnnOWmp6xMN2rXhwlw$fc32732d8fdfe200b80bc1f69fe7e712', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$5kf4TnnOWmp6xMN2rXhwlw$fc32732d8fdfe200b80bc1f69fe7e712', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ BasicAuthTests.test_post_json_passing_basic_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$PTDEZa4tB5yncI2N6lcySb$720b2c0021be47cb6cce294b4717c100', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PTDEZa4tB5yncI2N6lcySb$720b2c0021be47cb6cce294b4717c100', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PTDEZa4tB5yncI2N6lcySb$720b2c0021be47cb6cce294b4717c100', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ BasicAuthTests.test_regression_handle_bad_base64_basic_auth_header ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$KNGyUYVhX0mbTVA2v39Xc2$c145a572c7cfae86499cb45f441134c0', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$KNGyUYVhX0mbTVA2v39Xc2$c145a572c7cfae86499cb45f441134c0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$KNGyUYVhX0mbTVA2v39Xc2$c145a572c7cfae86499cb45f441134c0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ SessionAuthTests.test_login_view_renders_on_get ________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$ik0zKhGSMoaFjknbIvPhQG$2a1b1267e49306d13f796e234cd0da53', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ik0zKhGSMoaFjknbIvPhQG$2a1b1267e49306d13f796e234cd0da53', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$ik0zKhGSMoaFjknbIvPhQG$2a1b1267e49306d13f796e234cd0da53', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ SessionAuthTests.test_post_form_session_auth_failing _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$lC9v23olhvhsYWWJN1hk5P$081cd2765db8a8d0bc75b3f146c2d105', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$lC9v23olhvhsYWWJN1hk5P$081cd2765db8a8d0bc75b3f146c2d105', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$lC9v23olhvhsYWWJN1hk5P$081cd2765db8a8d0bc75b3f146c2d105', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ SessionAuthTests.test_post_form_session_auth_failing_csrf ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$kt5lQ3N6a9AzcOaj7ssyeH$8a8c26d33be65052cbafe2042bd7c1c8', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$kt5lQ3N6a9AzcOaj7ssyeH$8a8c26d33be65052cbafe2042bd7c1c8', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$kt5lQ3N6a9AzcOaj7ssyeH$8a8c26d33be65052cbafe2042bd7c1c8', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ SessionAuthTests.test_post_form_session_auth_passing _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$iUvAJkQMrjrDskHodgmJ7d$d8a71c6c7a614c0abd1ceed1269a02a1', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$iUvAJkQMrjrDskHodgmJ7d$d8a71c6c7a614c0abd1ceed1269a02a1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$iUvAJkQMrjrDskHodgmJ7d$d8a71c6c7a614c0abd1ceed1269a02a1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ SessionAuthTests.test_post_form_session_auth_passing_csrf ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$snhrfD6m8x0TeqQa0a2F4C$e3642462124a95ca04c46343a77962c7', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$snhrfD6m8x0TeqQa0a2F4C$e3642462124a95ca04c46343a77962c7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$snhrfD6m8x0TeqQa0a2F4C$e3642462124a95ca04c46343a77962c7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ SessionAuthTests.test_put_form_session_auth_passing ______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$3I6ewKtpqkCOKQCTwuIepT$478a7cfafb3e7cd1082e9b274d2033ea', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$3I6ewKtpqkCOKQCTwuIepT$478a7cfafb3e7cd1082e9b274d2033ea', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.non_csrf_client = APIClient(enforce_csrf_checks=False) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$3I6ewKtpqkCOKQCTwuIepT$478a7cfafb3e7cd1082e9b274d2033ea', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TokenAuthTests.test_fail_authentication_if_user_is_not_active _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$xvUlAA6rOb5Ksyk9p6kJMJ$09d4737a36bd7eb1b8ccb245554d552e', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$xvUlAA6rOb5Ksyk9p6kJMJ$09d4737a36bd7eb1b8ccb245554d552e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$xvUlAA6rOb5Ksyk9p6kJMJ$09d4737a36bd7eb1b8ccb245554d552e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ TokenAuthTests.test_fail_post_form_passing_invalid_token_auth _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$6EuPnz7DbC9nfPJK4BnTNw$614b927cd2b7ddf1f66377d4617986c6', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$6EuPnz7DbC9nfPJK4BnTNw$614b927cd2b7ddf1f66377d4617986c6', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$6EuPnz7DbC9nfPJK4BnTNw$614b927cd2b7ddf1f66377d4617986c6', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ TokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$fBDN7doP9uhonVT17DiCda$0d25136b6669ccf64fb3f26cd2010461', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fBDN7doP9uhonVT17DiCda$0d25136b6669ccf64fb3f26cd2010461', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fBDN7doP9uhonVT17DiCda$0d25136b6669ccf64fb3f26cd2010461', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ TokenAuthTests.test_fail_post_if_token_contains_spaces ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$DwxR3K97D6TzEwHuWGBlky$09cb16550637b6f7a170ec7b62e07cb7', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$DwxR3K97D6TzEwHuWGBlky$09cb16550637b6f7a170ec7b62e07cb7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$DwxR3K97D6TzEwHuWGBlky$09cb16550637b6f7a170ec7b62e07cb7', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______________ TokenAuthTests.test_fail_post_if_token_is_missing _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$tM5zAG7XkmMIpM38SagYY9$99598395c14c7f58c2484d8082a38cea', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tM5zAG7XkmMIpM38SagYY9$99598395c14c7f58c2484d8082a38cea', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$tM5zAG7XkmMIpM38SagYY9$99598395c14c7f58c2484d8082a38cea', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ TokenAuthTests.test_generate_key_accessible_as_classmethod __________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$IYAwWGjW4MwwvSORLpQGxg$7f9a114cf921aa24f375fafcda376e30', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$IYAwWGjW4MwwvSORLpQGxg$7f9a114cf921aa24f375fafcda376e30', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$IYAwWGjW4MwwvSORLpQGxg$7f9a114cf921aa24f375fafcda376e30', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_generate_key_returns_string ________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$PiwxfSNOR5UnIH1reRT1zw$ed7d2719a0ca7cd34cfddd6719f4d7a3', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PiwxfSNOR5UnIH1reRT1zw$ed7d2719a0ca7cd34cfddd6719f4d7a3', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PiwxfSNOR5UnIH1reRT1zw$ed7d2719a0ca7cd34cfddd6719f4d7a3', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_post_form_failing_token_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$duzqYn3YgNmTSEAsphDH7s$14a17db4a67dbff879dfbb5ddd40599a', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$duzqYn3YgNmTSEAsphDH7s$14a17db4a67dbff879dfbb5ddd40599a', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$duzqYn3YgNmTSEAsphDH7s$14a17db4a67dbff879dfbb5ddd40599a', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_post_form_passing_token_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$EHS789PYOwrYubJ3S2zauG$26dfc67cb32a0ce0fdf7962e516da9d9', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$EHS789PYOwrYubJ3S2zauG$26dfc67cb32a0ce0fdf7962e516da9d9', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$EHS789PYOwrYubJ3S2zauG$26dfc67cb32a0ce0fdf7962e516da9d9', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_post_json_failing_token_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$X7RiXW4niXFWK8mjkk4gtw$3938274f7103d21f6d127d2869598a04', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$X7RiXW4niXFWK8mjkk4gtw$3938274f7103d21f6d127d2869598a04', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$X7RiXW4niXFWK8mjkk4gtw$3938274f7103d21f6d127d2869598a04', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_post_json_makes_one_db_query _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$fEo0cwf4CfdmDFNNHgWQJA$d84c6b728d2f763503981dd8bb23b290', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fEo0cwf4CfdmDFNNHgWQJA$d84c6b728d2f763503981dd8bb23b290', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fEo0cwf4CfdmDFNNHgWQJA$d84c6b728d2f763503981dd8bb23b290', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________ TokenAuthTests.test_post_json_passing_token_auth _______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$hQZ52ZJdjPhJk2OzS3gURY$5075a3550e667dcb3c22198a059d8047', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$hQZ52ZJdjPhJk2OzS3gURY$5075a3550e667dcb3c22198a059d8047', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$hQZ52ZJdjPhJk2OzS3gURY$5075a3550e667dcb3c22198a059d8047', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______ TokenAuthTests.test_token_has_auto_assigned_key_if_none_provided _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$przU2X8bhAFvY4y4zcxMuu$f51098b55ffd5bc04500adc0767463ee', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$przU2X8bhAFvY4y4zcxMuu$f51098b55ffd5bc04500adc0767463ee', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$przU2X8bhAFvY4y4zcxMuu$f51098b55ffd5bc04500adc0767463ee', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TokenAuthTests.test_token_login_form _____________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$VBpUIhoL2FnuRnSo8uEOVm$65a22083e9076c1accd3c71af2909377', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$VBpUIhoL2FnuRnSo8uEOVm$65a22083e9076c1accd3c71af2909377', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$VBpUIhoL2FnuRnSo8uEOVm$65a22083e9076c1accd3c71af2909377', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TokenAuthTests.test_token_login_json _____________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$t8ze0RsmLjND0aYFKSTAou$a0cf2c1b8db5452dcf587b39993c849d', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$t8ze0RsmLjND0aYFKSTAou$a0cf2c1b8db5452dcf587b39993c849d', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$t8ze0RsmLjND0aYFKSTAou$a0cf2c1b8db5452dcf587b39993c849d', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________________ TokenAuthTests.test_token_login_json_bad_creds ________________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$suUTTdmaGLxSuW1uWFMUad$71d1e8cee300bd47a98412a94d908bbe', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$suUTTdmaGLxSuW1uWFMUad$71d1e8cee300bd47a98412a94d908bbe', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$suUTTdmaGLxSuW1uWFMUad$71d1e8cee300bd47a98412a94d908bbe', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ TokenAuthTests.test_token_login_json_missing_fields ______________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$QiisVXRM12oLYY2nNtQe3i$e9919d737eec7a6f44d56f81ec3b1c67', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$QiisVXRM12oLYY2nNtQe3i$e9919d737eec7a6f44d56f81ec3b1c67', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$QiisVXRM12oLYY2nNtQe3i$e9919d737eec7a6f44d56f81ec3b1c67', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ CustomTokenAuthTests.test_fail_authentication_if_user_is_not_active ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$z8BTfqy9ySR6CHQTThfcJ1$06d95889d26f0fb287ccebd00d2b4102', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$z8BTfqy9ySR6CHQTThfcJ1$06d95889d26f0fb287ccebd00d2b4102', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$z8BTfqy9ySR6CHQTThfcJ1$06d95889d26f0fb287ccebd00d2b4102', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ CustomTokenAuthTests.test_fail_post_form_passing_invalid_token_auth ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$PK1T1wbF3IfUahlA1QQM2K$745516287e858bf674a666c03070a6e1', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PK1T1wbF3IfUahlA1QQM2K$745516287e858bf674a666c03070a6e1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$PK1T1wbF3IfUahlA1QQM2K$745516287e858bf674a666c03070a6e1', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___ CustomTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth ____ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$povCspK95BkjOyeP4avT5n$f73cf3b4a70223ce8f528667ad0d2185', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$povCspK95BkjOyeP4avT5n$f73cf3b4a70223ce8f528667ad0d2185', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$povCspK95BkjOyeP4avT5n$f73cf3b4a70223ce8f528667ad0d2185', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _________ CustomTokenAuthTests.test_fail_post_if_token_contains_spaces _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$LY57xOrz8rSIfQhIcZAIUS$3ee32267cd7ad659553676ed909de7fb', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$LY57xOrz8rSIfQhIcZAIUS$3ee32267cd7ad659553676ed909de7fb', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$LY57xOrz8rSIfQhIcZAIUS$3ee32267cd7ad659553676ed909de7fb', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ CustomTokenAuthTests.test_fail_post_if_token_is_missing ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$6VcuizkMexkKpo41iTQxpx$7b1545c16e8812a760c21294926ea60b', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$6VcuizkMexkKpo41iTQxpx$7b1545c16e8812a760c21294926ea60b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$6VcuizkMexkKpo41iTQxpx$7b1545c16e8812a760c21294926ea60b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ CustomTokenAuthTests.test_post_form_failing_token_auth ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$pM3poiAkXR80CK036wMQv7$12e196b044af51f24593607ea8cf2bdb', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$pM3poiAkXR80CK036wMQv7$12e196b044af51f24593607ea8cf2bdb', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$pM3poiAkXR80CK036wMQv7$12e196b044af51f24593607ea8cf2bdb', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ CustomTokenAuthTests.test_post_form_passing_token_auth ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$jBzTCAZ5509c3byHEB3Uel$16de52939aa5aa95801a4e91306cc370', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$jBzTCAZ5509c3byHEB3Uel$16de52939aa5aa95801a4e91306cc370', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$jBzTCAZ5509c3byHEB3Uel$16de52939aa5aa95801a4e91306cc370', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ CustomTokenAuthTests.test_post_json_failing_token_auth ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$gU9BbApQIcPSeQYd3HzsxF$84f957acc91baeb966cc3d96e49c7c7e', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gU9BbApQIcPSeQYd3HzsxF$84f957acc91baeb966cc3d96e49c7c7e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gU9BbApQIcPSeQYd3HzsxF$84f957acc91baeb966cc3d96e49c7c7e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ CustomTokenAuthTests.test_post_json_makes_one_db_query ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$yyHuAZXQEskionma2fukfC$b22f8589292e8e545cd687158d5fcec0', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$yyHuAZXQEskionma2fukfC$b22f8589292e8e545cd687158d5fcec0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$yyHuAZXQEskionma2fukfC$b22f8589292e8e545cd687158d5fcec0', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ CustomTokenAuthTests.test_post_json_passing_token_auth ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$fxkUcoCJKJ2hBqI77Y7TDd$2c8da16a8af517df398780a5e20a021b', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fxkUcoCJKJ2hBqI77Y7TDd$2c8da16a8af517df398780a5e20a021b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$fxkUcoCJKJ2hBqI77Y7TDd$2c8da16a8af517df398780a5e20a021b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ CustomKeywordTokenAuthTests.test_fail_authentication_if_user_is_not_active __ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$nExAkphKSk15cZGAUV4hzW$4f1566a5ea2a3446bd607c0004038276', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$nExAkphKSk15cZGAUV4hzW$4f1566a5ea2a3446bd607c0004038276', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$nExAkphKSk15cZGAUV4hzW$4f1566a5ea2a3446bd607c0004038276', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __ CustomKeywordTokenAuthTests.test_fail_post_form_passing_invalid_token_auth __ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$u27TE609ZbYDCZHcks9WcS$7cca8709a078578bb9e4b30e82ce8ca2', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$u27TE609ZbYDCZHcks9WcS$7cca8709a078578bb9e4b30e82ce8ca2', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$u27TE609ZbYDCZHcks9WcS$7cca8709a078578bb9e4b30e82ce8ca2', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ CustomKeywordTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$Azxgl5uHU1qqbOWiZaeBGY$05a9d2800a782ddcff1ae5bf73884f9e', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Azxgl5uHU1qqbOWiZaeBGY$05a9d2800a782ddcff1ae5bf73884f9e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Azxgl5uHU1qqbOWiZaeBGY$05a9d2800a782ddcff1ae5bf73884f9e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____ CustomKeywordTokenAuthTests.test_fail_post_if_token_contains_spaces ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$Tv8cO0efz0bJ3GDrZfs0iy$c8f0a36a956ba24b8f190e1ccdbe5349', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Tv8cO0efz0bJ3GDrZfs0iy$c8f0a36a956ba24b8f190e1ccdbe5349', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$Tv8cO0efz0bJ3GDrZfs0iy$c8f0a36a956ba24b8f190e1ccdbe5349', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_fail_post_if_token_is_missing ________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$RwGlMMmS6ooS28LCRcgPDA$941b2633d9e6a2547a0a77529135539e', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$RwGlMMmS6ooS28LCRcgPDA$941b2633d9e6a2547a0a77529135539e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$RwGlMMmS6ooS28LCRcgPDA$941b2633d9e6a2547a0a77529135539e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_post_form_failing_token_auth _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$MBGx7qJYArZTbvn8IPHsHL$54d340ac86612a6dd626f0d840f8aa7e', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MBGx7qJYArZTbvn8IPHsHL$54d340ac86612a6dd626f0d840f8aa7e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MBGx7qJYArZTbvn8IPHsHL$54d340ac86612a6dd626f0d840f8aa7e', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_post_form_passing_token_auth _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$IAeTnoSIia99wz6EalSrl4$6e2f6ff9be351d3f7746566942622e24', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$IAeTnoSIia99wz6EalSrl4$6e2f6ff9be351d3f7746566942622e24', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$IAeTnoSIia99wz6EalSrl4$6e2f6ff9be351d3f7746566942622e24', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_post_json_failing_token_auth _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$QO0OF5yxzYUGiXEYpoiwUN$1d6f01fd58b58c5d21c23f50fc89100b', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$QO0OF5yxzYUGiXEYpoiwUN$1d6f01fd58b58c5d21c23f50fc89100b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$QO0OF5yxzYUGiXEYpoiwUN$1d6f01fd58b58c5d21c23f50fc89100b', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_post_json_makes_one_db_query _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$057VbrBJutUNA494MNpoju$e0fa30a5987bdebd8f4b139b7d083cc4', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$057VbrBJutUNA494MNpoju$e0fa30a5987bdebd8f4b139b7d083cc4', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$057VbrBJutUNA494MNpoju$e0fa30a5987bdebd8f4b139b7d083cc4', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ________ CustomKeywordTokenAuthTests.test_post_json_passing_token_auth _________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$7cMUsNs8VS4bS1geRXxNHL$f0639d737dd77372b82b13173751161f', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$7cMUsNs8VS4bS1geRXxNHL$f0639d737dd77372b82b13173751161f', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.csrf_client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$7cMUsNs8VS4bS1geRXxNHL$f0639d737dd77372b82b13173751161f', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _ BasicAuthenticationUnitTests.test_basic_authentication_raises_error_if_user_not_found _ self = sql = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u...staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = %s LIMIT 21' params = ('invalid id',) ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u..._staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = ? LIMIT 21' params = ('invalid id',) def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def test_basic_authentication_raises_error_if_user_not_found(self): auth = BasicAuthentication() with pytest.raises(exceptions.AuthenticationFailed): > auth.authenticate_credentials('invalid id', 'invalid password') tests/authentication/test_authentication.py:560: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rest_framework/authentication.py:98: in authenticate_credentials user = authenticate(request=request, **credentials) /usr/lib/python3.10/site-packages/django/views/decorators/debug.py:42: in sensitive_variables_wrapper return func(*func_args, **func_kwargs) /usr/lib/python3.10/site-packages/django/contrib/auth/__init__.py:76: in authenticate user = backend.authenticate(request, **credentials) /usr/lib/python3.10/site-packages/django/contrib/auth/backends.py:42: in authenticate user = UserModel._default_manager.get_by_natural_key(username) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:45: in get_by_natural_key return self.get(**{self.model.USERNAME_FIELD: username}) /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:431: in get num = len(clone) /usr/lib/python3.10/site-packages/django/db/models/query.py:262: in __len__ self._fetch_all() /usr/lib/python3.10/site-packages/django/db/models/query.py:1324: in _fetch_all self._result_cache = list(self._iterable_class(self)) /usr/lib/python3.10/site-packages/django/db/models/query.py:51: in __iter__ results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1175: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u..._staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = ? LIMIT 21' params = ('invalid id',) def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ___________ RemoteUserAuthenticationUnitTests.test_remote_user_works ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$gPPYcj6cASkHQWeKUcTaNM$e1ab8a8062e30cde1d96f4f355710c24', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gPPYcj6cASkHQWeKUcTaNM$e1ab8a8062e30cde1d96f4f355710c24', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/authentication/test_authentication.py:585: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$gPPYcj6cASkHQWeKUcTaNM$e1ab8a8062e30cde1d96f4f355710c24', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ DropdownWithAuthTests.test_login_shown_when_logged_out ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$OKvlpjtJHxN9WRArbcy5ei$7d417d2e6bbc1c105b325858781128bc', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OKvlpjtJHxN9WRArbcy5ei$7d417d2e6bbc1c105b325858781128bc', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$OKvlpjtJHxN9WRArbcy5ei$7d417d2e6bbc1c105b325858781128bc', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ____________ DropdownWithAuthTests.test_logout_shown_when_logged_in ____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$uuK3CwrBv4gMIGjOFsB1sd$6211a7c73f18e9a247aaf7f44fa6f169', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$uuK3CwrBv4gMIGjOFsB1sd$6211a7c73f18e9a247aaf7f44fa6f169', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$uuK3CwrBv4gMIGjOFsB1sd$6211a7c73f18e9a247aaf7f44fa6f169', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________ DropdownWithAuthTests.test_name_shown_when_logged_in _____________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$usNqwVAaRWXSCytf2gmcjf$c86e9c07feb3c8b8ceb85a1421cb8445', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$usNqwVAaRWXSCytf2gmcjf$c86e9c07feb3c8b8ceb85a1421cb8445', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$usNqwVAaRWXSCytf2gmcjf$c86e9c07feb3c8b8ceb85a1421cb8445', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_in _______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$MUrFeZJ2oEJP0kF0e5OXLY$83470120cd84324ceb344bd7abb6e9d5', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MUrFeZJ2oEJP0kF0e5OXLY$83470120cd84324ceb344bd7abb6e9d5', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$MUrFeZJ2oEJP0kF0e5OXLY$83470120cd84324ceb344bd7abb6e9d5', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_out ______ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$B7fSmahi5ZJTWXaFIpbdhX$e0602dc99269767aa2bc8d503e46d142', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$B7fSmahi5ZJTWXaFIpbdhX$e0602dc99269767aa2bc8d503e46d142', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$B7fSmahi5ZJTWXaFIpbdhX$e0602dc99269767aa2bc8d503e46d142', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________ NoDropdownWithoutAuthTests.test_name_shown_when_logged_in ___________ self = sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' params = ['md5$sSi0gKyVWd7q8Z5iEma8s4$4ce220ac1e2959b6490bad935118fa8f', None, False, 'john', '', '', ...] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$sSi0gKyVWd7q8Z5iEma8s4$4ce220ac1e2959b6490bad935118fa8f', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): self.client = APIClient(enforce_csrf_checks=True) self.username = 'john' self.email = 'lennon@thebeatles.com' self.password = 'password' > self.user = User.objects.create_user( self.username, self.email, self.password ) tests/browsable_api/test_browsable_api.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:152: in create_user return self._create_user(username, email, password, **extra_fields) /usr/lib/python3.10/site-packages/django/contrib/auth/models.py:146: in _create_user user.save(using=self._db) /usr/lib/python3.10/site-packages/django/contrib/auth/base_user.py:67: in save super().save(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params = ['md5$sSi0gKyVWd7q8Z5iEma8s4$4ce220ac1e2959b6490bad935118fa8f', None, False, 'john', '', '', ...] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: auth_user /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _______________________ DropdownWithAuthTests.test_login _______________________ self = @override_settings(ROOT_URLCONF='tests.browsable_api.test_browsable_nested_api') def test_login(self): response = self.client.get('/api/') > assert 200 == response.status_code E AssertionError: assert 200 == 400 E +200 E -400 tests/browsable_api/test_browsable_nested_api.py:36: AssertionError ------------------------------ Captured log call ------------------------------- ERROR django.security.DisallowedHost:exception.py:99 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS. WARNING django.request:log.py:224 Bad Request: /api/ __________________ TestManyPostView.test_post_many_post_view ___________________ self = sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s)', params = ['foo'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): """ Create 3 BasicModel instances. """ items = ['foo', 'bar', 'baz'] for item in items: > BasicModel(text=item).save() tests/browsable_api/test_form_rendering.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?)', params = ['foo'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: tests_basicmodel /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError _____________________ TestGenericRelations.test_generic_fk _____________________ self = sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s)' params = ['https://www.djangoproject.com/'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?)' params = ['https://www.djangoproject.com/'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: generic_relations_bookmark /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/') tests/generic_relations/test_generic_relations.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?)' params = ['https://www.djangoproject.com/'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: generic_relations_bookmark /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError __________________ TestGenericRelations.test_generic_relation __________________ self = sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s)' params = ['https://www.djangoproject.com/'] ignored_wrapper_args = (False, {'connection': , 'cursor': }) def _execute(self, sql, params, *ignored_wrapper_args): 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) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?)' params = ['https://www.djangoproject.com/'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E sqlite3.OperationalError: no such table: generic_relations_bookmark /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError The above exception was the direct cause of the following exception: self = def setUp(self): > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/') tests/generic_relations/test_generic_relations.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:453: in create obj.save(force_insert=True, using=self.db) /usr/lib/python3.10/site-packages/django/db/models/base.py:739: in save self.save_base(using=using, force_insert=force_insert, /usr/lib/python3.10/site-packages/django/db/models/base.py:776: in save_base updated = self._save_table( /usr/lib/python3.10/site-packages/django/db/models/base.py:881: in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) /usr/lib/python3.10/site-packages/django/db/models/base.py:919: in _do_insert return manager._insert( /usr/lib/python3.10/site-packages/django/db/models/manager.py:85: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) /usr/lib/python3.10/site-packages/django/db/models/query.py:1270: in _insert return query.get_compiler(using=using).execute_sql(returning_fields) /usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py:1416: in execute_sql cursor.execute(sql, params) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:66: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:75: in _execute_with_wrappers return executor(sql, params, many, context) /usr/lib/python3.10/site-packages/django/db/backends/utils.py:79: in _execute with self.db.wrap_database_errors: /usr/lib/python3.10/site-packages/django/db/utils.py:90: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value /usr/lib/python3.10/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?)' params = ['https://www.djangoproject.com/'] def execute(self, query, params=None): if params is None: return Database.Cursor.execute(self, query) query = self.convert_query(query) > return Database.Cursor.execute(self, query, params) E django.db.utils.OperationalError: no such table: generic_relations_bookmark /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py:423: OperationalError =========================== short test summary info ============================ FAILED tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction FAILED tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management FAILED tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view FAILED tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps FAILED tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields FAILED tests/test_authtoken.py::AuthTokenTests::test_token_string_representation FAILED tests/test_authtoken.py::AuthTokenTests::test_validate_raise_error_if_no_credentials_provided FAILED tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_output - ... FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token FAILED tests/test_filters.py::SearchFilterTests::test_exact_search - django.d... FAILED tests/test_filters.py::SearchFilterTests::test_regexp_search - django.... FAILED tests/test_filters.py::SearchFilterTests::test_search - django.db.util... FAILED tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms FAILED tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters FAILED tests/test_filters.py::SearchFilterTests::test_search_returns_same_queryset_if_no_search_fields_or_terms_provided FAILED tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass FAILED tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param FAILED tests/test_filters.py::SearchFilterTests::test_startswith_search - dja... FAILED tests/test_filters.py::SearchFilterM2MTests::test_m2m_search - django.... FAILED tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering - dj... FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string FAILED tests/test_filters.py::OrderingFilterTests::test_get_template_context FAILED tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering FAILED tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering FAILED tests/test_filters.py::OrderingFilterTests::test_ordering - django.db.... FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields FAILED tests/test_filters.py::OrderingFilterTests::test_reverse_ordering - dj... FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields FAILED tests/test_generics.py::TestRootView::test_delete_root_view - django.d... FAILED tests/test_generics.py::TestRootView::test_get_root_view - django.db.u... FAILED tests/test_generics.py::TestRootView::test_head_root_view - django.db.... FAILED tests/test_generics.py::TestRootView::test_post_cannot_set_id - django... FAILED tests/test_generics.py::TestRootView::test_post_error_root_view - djan... FAILED tests/test_generics.py::TestRootView::test_post_root_view - django.db.... FAILED tests/test_generics.py::TestRootView::test_put_root_view - django.db.u... FAILED tests/test_generics.py::TestInstanceView::test_delete_instance_view - ... FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view - dja... FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg FAILED tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object FAILED tests/test_generics.py::TestInstanceView::test_patch_instance_view - d... FAILED tests/test_generics.py::TestInstanceView::test_post_instance_view - dj... FAILED tests/test_generics.py::TestInstanceView::test_put_cannot_set_id - dja... FAILED tests/test_generics.py::TestInstanceView::test_put_error_instance_view FAILED tests/test_generics.py::TestInstanceView::test_put_instance_view - dja... FAILED tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance FAILED tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance FAILED tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view FAILED tests/test_generics.py::TestCreateModelWithAutoNowAddField::test_create_model_with_auto_now_add_field FAILED tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_filters_out_name_with_filter_backend FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_by_name_with_filter_backend FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_out_all_models_with_exclusive_filter_backend FAILED tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_invalid_string_for_uuid FAILED tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_valid_uuid FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template FAILED tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names FAILED tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices FAILED tests/test_middleware.py::TestMiddleware::test_middleware_can_access_user_when_processing_response FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value FAILED tests/test_model_serializer.py::TestIntegration::test_pk_create - djan... FAILED tests/test_model_serializer.py::TestIntegration::test_pk_retrival - dj... FAILED tests/test_model_serializer.py::TestIntegration::test_pk_update - djan... FAILED tests/test_model_serializer.py::TestBulkCreate::test_bulk_create - dja... FAILED tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all FAILED tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer FAILED tests/test_model_serializer.py::Issue4897TestCase::test_should_assert_if_writing_readonly_fields FAILED tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field FAILED tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk FAILED tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager FAILED tests/test_model_serializer.py::Issue6751Test::test_model_serializer_save_m2m_after_instance FAILED tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_onetoone_primary_key_model_fields_as_expected FAILED tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero FAILED tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved FAILED tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved FAILED tests/test_pagination.py::TestPageNumberPagination::test_no_page_number FAILED tests/test_pagination.py::TestPageNumberPagination::test_second_page FAILED tests/test_pagination.py::TestPageNumberPagination::test_last_page - d... FAILED tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number FAILED tests/test_pagination.py::TestLimitOffset::test_no_offset - django.cor... FAILED tests/test_pagination.py::TestLimitOffset::test_single_offset - django... FAILED tests/test_pagination.py::TestLimitOffset::test_first_offset - django.... FAILED tests/test_pagination.py::TestLimitOffset::test_middle_offset - django... FAILED tests/test_pagination.py::TestLimitOffset::test_ending_offset - django... FAILED tests/test_pagination.py::TestLimitOffset::test_erronous_offset - djan... FAILED tests/test_pagination.py::TestLimitOffset::test_invalid_limit - django... FAILED tests/test_pagination.py::TestLimitOffset::test_zero_limit - django.co... FAILED tests/test_pagination.py::TestLimitOffset::test_max_limit - django.cor... FAILED tests/test_pagination.py::TestCursorPagination::test_invalid_cursor - ... FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_over_limit FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_api_root_view_discard_default_django_model_permission FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object_with_custom_detail FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_false FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_true FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_false FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_true FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_false FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_true FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation FAILED tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_excluding_instance_from_original_queryset FAILED tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_Q_limited_choices FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_null_uuid_foreign_key_serializes_as_none FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_nullable_uuid_foreign_key_is_valid_when_none FAILED tests/test_relations_pk.py::PKNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_does_not_exist FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_no_duplicates FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED tests/test_renderers.py::RendererEndToEndTests::test_204_no_content_responses_have_no_content_type_set FAILED tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response FAILED tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content FAILED tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content_on_accept_any FAILED tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content FAILED tests/test_renderers.py::RendererEndToEndTests::test_parse_error_renderers_browsable_api FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_default_case FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_non_default_case FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_query FAILED tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list FAILED tests/test_renderers.py::CacheRenderTest::test_get_caching - Attribute... FAILED tests/test_renderers.py::CacheRenderTest::test_head_caching - Attribut... FAILED tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown FAILED tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end FAILED tests/test_request.py::TestContentParsingWithAuthentication::test_user_logged_in_authentication_has_POST_when_not_logged_in FAILED tests/test_request.py::TestUserSetter::test_calling_user_fails_when_attribute_error_is_raised FAILED tests/test_request.py::TestUserSetter::test_logged_in_user_is_set_on_wrapped_request FAILED tests/test_request.py::TestUserSetter::test_user_can_be_set - django.d... FAILED tests/test_request.py::TestUserSetter::test_user_can_login - django.db... FAILED tests/test_request.py::TestUserSetter::test_user_can_logout - django.d... FAILED tests/test_request.py::TestHttpRequest::test_duplicate_request_form_data_access FAILED tests/test_request.py::TestHttpRequest::test_duplicate_request_stream_parsing_exception FAILED tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content FAILED tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content_on_accept_any FAILED tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_default_case FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_non_default_case FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_query FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml FAILED tests/test_response.py::Issue467Tests::test_form_has_label_and_help_text FAILED tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response FAILED tests/test_response.py::Issue807Tests::test_does_not_append_charset_by_default FAILED tests/test_response.py::Issue807Tests::test_form_has_label_and_help_text FAILED tests/test_response.py::Issue807Tests::test_if_there_is_charset_specified_on_renderer_it_gets_appended FAILED tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme_fallback_to_default_on_error FAILED tests/test_reverse.py::ReverseTests::test_reversed_urls_are_fully_qualified FAILED tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers FAILED tests/test_routers.py::TestRootView::test_retrieve_namespaced_root - A... FAILED tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root FAILED tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_url_encoded_detail_view_ FAILED tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route FAILED tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_encoded_kwarg_detail_view FAILED tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail - Ass... FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list - Asser... FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail - ... FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list - As... FAILED tests/test_testing.py::TestAPITestClient::test_can_logout - AttributeE... FAILED tests/test_testing.py::TestAPITestClient::test_credentials - Attribute... FAILED tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default FAILED tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value FAILED tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks FAILED tests/test_testing.py::TestAPITestClient::test_follow_redirect - Asser... FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate - dj... FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions FAILED tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate FAILED tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default FAILED tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks FAILED tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate FAILED tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns - Asse... FAILED tests/test_testing.py::TestExistingPatterns::test_urlpatterns - Assert... FAILED tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user FAILED tests/test_throttling.py::ScopedRateThrottleTests::test_get_cache_key_returns_correct_key_if_user_is_authenticated FAILED tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success FAILED tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model FAILED tests/test_validators.py::TestUniquenessValidation::test_is_not_unique FAILED tests/test_validators.py::TestUniquenessValidation::test_is_unique - d... FAILED tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique FAILED tests/test_validators.py::TestUniquenessValidation::test_repr - django... FAILED tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded FAILED tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_multiple_fields_with_same_source FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_do_not_ignore_validation_for_null_fields FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_filter_queryset_do_not_skip_existing_attribute FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default_and_source FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_repr FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_repr FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_updated_instance_excluded_from_unique_for_date FAILED tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month FAILED tests/test_validators.py::UniqueForMonthTests::test_unique_for_month FAILED tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year FAILED tests/test_validators.py::UniqueForYearTests::test_unique_for_year - d... FAILED tests/test_versioning.py::TestURLReversing::test_reverse_namespace_versioning FAILED tests/test_versioning.py::TestURLReversing::test_reverse_query_param_versioning FAILED tests/test_versioning.py::TestURLReversing::test_reverse_unversioned FAILED tests/test_versioning.py::TestURLReversing::test_reverse_url_path_versioning FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_nested FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v1 FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v2 FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_non_api_url_is_properly_reversed_regardless_of_the_version FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view - ... FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view - At... FAILED tests/test_viewsets.py::ReverseActionTests::test_request_passing - dja... FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_are_missing FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_contain_spaces FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_regression_handle_bad_base64_basic_auth_header FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing_csrf FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing_csrf FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_contains_spaces FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_is_missing FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_makes_one_db_query FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_has_auto_assigned_key_if_none_provided FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_is_missing FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_makes_one_db_query FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_is_missing FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_makes_one_db_query FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth FAILED tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_found FAILED tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in FAILED tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login FAILED tests/browsable_api/test_form_rendering.py::TestManyPostView::test_post_many_post_view FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation ERROR tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field ====== 419 failed, 852 passed, 138 skipped, 3 errors in 293.34s (0:04:53) ====== ==> ERROR: A failure occurred in check().  Aborting...