Test Execution Report¶
Generated: November 13, 2026 19:16:31 UTC
📊 Test Suite Summary¶
| Metric | Value |
|---|---|
| Total Tests | 845 |
| Passed | 845 ✅ |
| Failed | 0 ❌ |
| Errors | 0 ⚠️ |
| Skipped | 0 ⏭️ |
| Success Rate | 100.0% |
| Total Duration | 29.11s |
📝 Test Results by Python Version¶
Unit Tests (Python 3.10)¶
Summary: 138/138 passed • Duration: 3.90s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.022s) - ✅
test_multiple_invalid_requests(0.021s)
TestAPISecurityGET¶
- ✅
test_oversized_input(0.016s) - ✅
test_empty_parameters(0.005s) - ✅
test_whitespace_only_parameters(0.005s) - ✅
test_sql_injection_attempts(0.008s) - ✅
test_xss_attempts(0.010s) - ✅
test_path_traversal_attempts(0.007s) - ✅
test_command_injection_attempts(0.011s) - ✅
test_null_bytes(0.003s)
TestAPISecurityPOST¶
- ✅
test_malformed_json(0.010s) - ✅
test_non_string_types(0.017s) - ✅
test_oversized_json_values(0.006s) - ✅
test_sql_injection_in_json(0.006s) - ✅
test_xss_in_json(0.006s) - ✅
test_non_dict_json(0.012s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.001s) - ✅
test_unset_origins_return_empty_list(0.001s) - ✅
test_wildcard_origin_is_rejected(0.001s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.001s) - ✅
test_cors_response_requires_an_allowed_origin(0.008s)
TestHTTPErrorHandlers¶
- ✅
test_405_method_not_allowed(0.006s) - ✅
test_413_payload_too_large(0.013s) - ✅
test_404_not_found(0.004s) - ✅
test_415_unsupported_media_type(0.004s) - ✅
test_400_bad_request_missing_required_fields(0.010s) - ✅
test_invalid_json_syntax(0.010s) - ✅
test_empty_request_body_post(0.005s) - ✅
test_content_type_without_charset(0.580s) - ✅
test_null_bytes_in_input(0.003s) - ✅
test_very_long_query_string(0.012s) - ✅
test_multiple_content_types(0.004s) - ✅
test_case_sensitive_endpoints(0.005s) - ✅
test_trailing_slash_handling(0.007s) - ✅
test_double_slash_in_path(0.004s) - ✅
test_url_encoding_in_parameters(0.786s) - ✅
test_cors_preflight_request(0.005s) - ✅
test_parameter_without_value(0.006s) - ✅
test_response_headers_present(0.005s) - ✅
test_unicode_normalization_attack(0.005s) - ✅
test_header_injection_attempts(0.003s) - ✅
test_repeated_parameters(0.773s)
TestInputValidation¶
- ✅
test_valid_input(0.001s) - ✅
test_whitespace_trimming(0.001s) - ✅
test_empty_string(0.001s) - ✅
test_none_value(0.001s) - ✅
test_whitespace_only(0.001s) - ✅
test_exceeds_max_length(0.001s) - ✅
test_non_string_type(0.001s) - ✅
test_special_characters_rejected(0.001s) - ✅
test_unicode_cities_allowed(0.001s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.005s) - ✅
test_headers_on_error(0.006s)
test_api¶
- ✅
test_post_weather_missing_body(0.030s) - ✅
test_post_weather_missing_fields(0.007s) - ✅
test_health_check(0.015s) - ✅
test_weather_caching_same_bucket(0.036s) - ✅
test_post_weather_success(0.009s) - ✅
test_liveness_probe(0.007s) - ✅
test_get_weather_client_error(0.010s) - ✅
test_oversized_request_body(0.030s) - ✅
test_readiness_probe(0.090s) - ✅
test_post_weather_client_error(0.010s) - ✅
test_weather_cache_invalidation(0.012s) - ✅
test_post_weather_invalid_json(0.007s) - ✅
test_invalid_http_method(0.007s) - ✅
test_invalid_endpoint(0.006s) - ✅
test_cache_with_different_locations(0.011s) - ✅
test_x_request_id_header(0.008s) - ✅
test_weather_coordinates_invalid_latitude(0.012s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.001s) - ✅
test_cache_zero_duration(0.009s) - ✅
test_invalid_content_type_post(0.007s) - ✅
test_weather_coordinates_invalid_longitude(0.006s) - ✅
test_weather_coordinates_endpoint(0.468s) - ✅
test_malformed_json_body(0.007s) - ✅
test_recent_searches_get(0.007s) - ✅
test_recent_searches_delete(0.005s) - ✅
test_versioned_weather_get(0.423s) - ✅
test_get_weather_missing_parameters(0.012s) - ✅
test_get_weather_missing_city(0.006s) - ✅
test_get_weather_success(0.010s) - ✅
test_versioned_weather_post(0.007s) - ✅
test_weather_coordinates_missing_params(0.006s)
test_client¶
- ✅
test_humidity_extraction_with_parent_element(0.012s) - ✅
test_extract_humidity_not_found(0.011s) - ✅
test_weather_client_initialization(0.011s) - ✅
test_extract_weather_from_json_invalid_json(0.011s) - ✅
test_extract_wind_speed_not_found(0.009s) - ✅
test_weather_client_context_manager(0.010s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.003s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.002s) - ✅
test_mph_to_kmh_conversion(0.008s) - ✅
test_extract_weather_from_json_missing_keys(0.017s) - ✅
test_ms_to_kmh_conversion(0.007s) - ✅
test_get_weather_with_json_extraction(0.017s) - ✅
test_extract_weather_json_empty_forecast(0.009s) - ✅
test_extract_temperature(0.028s) - ✅
test_async_get_weather_by_coordinates_success(0.053s) - ✅
test_extract_weather_json_no_hourly(0.007s) - ✅
test_extract_condition(0.009s) - ✅
test_get_weather_fallback_to_html(0.030s) - ✅
test_extract_weather_json_empty_hourly(0.007s) - ✅
test_extract_humidity(0.009s) - ✅
test_extract_weather_json_exception(0.008s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.011s) - ✅
test_extract_wind_speed(0.007s) - ✅
test_get_weather_request_exception(0.008s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.009s) - ✅
test_extract_weather_from_json_success(0.009s) - ✅
test_fahrenheit_to_celsius_conversion(0.008s) - ✅
test_extract_weather_from_json_no_script_tag(0.010s) - ✅
test_extract_temperature_not_found(0.009s) - ✅
test_extract_condition_not_found(0.008s)
test_config_secret_key¶
- ✅
test_file_takes_precedence_over_environment(0.002s) - ✅
test_environment_value_is_used_when_no_file(0.001s) - ✅
test_short_key_is_rejected_in_production(0.001s) - ✅
test_placeholder_is_rejected_in_production(0.001s) - ✅
test_unreadable_file_is_an_error(0.001s) - ✅
test_development_generates_a_key_when_unset(0.001s)
test_models¶
- ✅
test_location_creation(0.001s) - ✅
test_location_with_coordinates(0.001s) - ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.001s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.002s) - ✅
test_lower_bandit_severity_does_not_fail(0.002s) - ✅
test_scanner_error_and_missing_report_fail(0.001s) - ✅
test_high_bandit_finding_fails(0.002s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.002s)
Unit Tests (Python 3.11)¶
Summary: 138/138 passed • Duration: 4.22s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.041s) - ✅
test_multiple_invalid_requests(0.044s)
TestAPISecurityGET¶
- ✅
test_oversized_input(0.032s) - ✅
test_sql_injection_attempts(0.013s) - ✅
test_xss_attempts(0.014s) - ✅
test_path_traversal_attempts(0.013s) - ✅
test_empty_parameters(0.008s) - ✅
test_whitespace_only_parameters(0.009s) - ✅
test_command_injection_attempts(0.020s) - ✅
test_null_bytes(0.004s)
TestAPISecurityPOST¶
- ✅
test_non_string_types(0.026s) - ✅
test_sql_injection_in_json(0.009s) - ✅
test_xss_in_json(0.009s) - ✅
test_non_dict_json(0.027s) - ✅
test_malformed_json(0.019s) - ✅
test_oversized_json_values(0.009s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.001s) - ✅
test_unset_origins_return_empty_list(0.001s) - ✅
test_wildcard_origin_is_rejected(0.001s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.001s) - ✅
test_cors_response_requires_an_allowed_origin(0.027s)
TestHTTPErrorHandlers¶
- ✅
test_415_unsupported_media_type(0.011s) - ✅
test_405_method_not_allowed(0.014s) - ✅
test_invalid_json_syntax(0.020s) - ✅
test_413_payload_too_large(0.023s) - ✅
test_content_type_without_charset(0.438s) - ✅
test_400_bad_request_missing_required_fields(0.022s) - ✅
test_unicode_normalization_attack(0.007s) - ✅
test_header_injection_attempts(0.003s) - ✅
test_multiple_content_types(0.007s) - ✅
test_case_sensitive_endpoints(0.011s) - ✅
test_404_not_found(0.007s) - ✅
test_trailing_slash_handling(0.013s) - ✅
test_url_encoding_in_parameters(0.552s) - ✅
test_double_slash_in_path(0.006s) - ✅
test_parameter_without_value(0.006s) - ✅
test_cors_preflight_request(0.005s) - ✅
test_response_headers_present(0.006s) - ✅
test_empty_request_body_post(0.006s) - ✅
test_null_bytes_in_input(0.003s) - ✅
test_very_long_query_string(0.010s) - ✅
test_repeated_parameters(0.572s)
TestInputValidation¶
- ✅
test_valid_input(0.001s) - ✅
test_whitespace_trimming(0.001s) - ✅
test_empty_string(0.001s) - ✅
test_none_value(0.001s) - ✅
test_whitespace_only(0.001s) - ✅
test_exceeds_max_length(0.001s) - ✅
test_non_string_type(0.001s) - ✅
test_special_characters_rejected(0.001s) - ✅
test_unicode_cities_allowed(0.001s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.023s) - ✅
test_headers_on_error(0.014s)
test_api¶
- ✅
test_post_weather_missing_body(0.037s) - ✅
test_health_check(0.017s) - ✅
test_post_weather_missing_fields(0.009s) - ✅
test_post_weather_success(0.012s) - ✅
test_liveness_probe(0.008s) - ✅
test_readiness_probe(0.155s) - ✅
test_get_weather_client_error(0.012s) - ✅
test_post_weather_client_error(0.010s) - ✅
test_post_weather_invalid_json(0.007s) - ✅
test_invalid_endpoint(0.006s) - ✅
test_oversized_request_body(0.009s) - ✅
test_invalid_http_method(0.006s) - ✅
test_x_request_id_header(0.007s) - ✅
test_cache_zero_duration(0.010s) - ✅
test_weather_coordinates_endpoint(0.583s) - ✅
test_get_weather_missing_parameters(0.016s) - ✅
test_get_weather_missing_city(0.009s) - ✅
test_get_weather_success(0.013s) - ✅
test_weather_caching_same_bucket(0.015s) - ✅
test_weather_cache_invalidation(0.021s) - ✅
test_cache_with_different_locations(0.014s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.001s) - ✅
test_invalid_content_type_post(0.011s) - ✅
test_malformed_json_body(0.009s) - ✅
test_weather_coordinates_missing_params(0.007s) - ✅
test_weather_coordinates_invalid_latitude(0.006s) - ✅
test_weather_coordinates_invalid_longitude(0.006s) - ✅
test_recent_searches_get(0.006s) - ✅
test_recent_searches_delete(0.006s) - ✅
test_versioned_weather_get(0.952s) - ✅
test_versioned_weather_post(0.007s)
test_client¶
- ✅
test_weather_client_initialization(0.016s) - ✅
test_extract_humidity_not_found(0.013s) - ✅
test_humidity_extraction_with_parent_element(0.014s) - ✅
test_extract_weather_from_json_invalid_json(0.013s) - ✅
test_weather_client_context_manager(0.013s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.003s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.003s) - ✅
test_extract_wind_speed_not_found(0.010s) - ✅
test_mph_to_kmh_conversion(0.010s) - ✅
test_extract_weather_from_json_missing_keys(0.011s) - ✅
test_get_weather_with_json_extraction(0.011s) - ✅
test_extract_temperature(0.321s) - ✅
test_async_get_weather_by_coordinates_success(0.066s) - ✅
test_ms_to_kmh_conversion(0.010s) - ✅
test_get_weather_fallback_to_html(0.296s) - ✅
test_extract_weather_json_empty_forecast(0.012s) - ✅
test_extract_weather_json_no_hourly(0.009s) - ✅
test_extract_weather_json_empty_hourly(0.009s) - ✅
test_extract_weather_json_exception(0.009s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.011s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.011s) - ✅
test_get_weather_request_exception(0.008s) - ✅
test_fahrenheit_to_celsius_conversion(0.007s) - ✅
test_extract_temperature_not_found(0.011s) - ✅
test_extract_condition(0.007s) - ✅
test_extract_humidity(0.006s) - ✅
test_extract_condition_not_found(0.010s) - ✅
test_extract_wind_speed(0.007s) - ✅
test_extract_weather_from_json_success(0.008s) - ✅
test_extract_weather_from_json_no_script_tag(0.007s)
test_config_secret_key¶
- ✅
test_file_takes_precedence_over_environment(0.001s) - ✅
test_environment_value_is_used_when_no_file(0.001s) - ✅
test_short_key_is_rejected_in_production(0.001s) - ✅
test_placeholder_is_rejected_in_production(0.001s) - ✅
test_unreadable_file_is_an_error(0.001s) - ✅
test_development_generates_a_key_when_unset(0.001s)
test_models¶
- ✅
test_location_creation(0.001s) - ✅
test_location_with_coordinates(0.001s) - ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.001s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.002s) - ✅
test_high_bandit_finding_fails(0.001s) - ✅
test_lower_bandit_severity_does_not_fail(0.001s) - ✅
test_scanner_error_and_missing_report_fail(0.001s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.002s)
Unit Tests (Python 3.12)¶
Summary: 138/138 passed • Duration: 5.75s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.050s) - ✅
test_multiple_invalid_requests(0.054s)
TestAPISecurityGET¶
- ✅
test_oversized_input(0.026s) - ✅
test_sql_injection_attempts(0.044s) - ✅
test_empty_parameters(0.010s) - ✅
test_whitespace_only_parameters(0.014s) - ✅
test_xss_attempts(0.019s) - ✅
test_path_traversal_attempts(0.012s) - ✅
test_command_injection_attempts(0.026s) - ✅
test_null_bytes(0.003s)
TestAPISecurityPOST¶
- ✅
test_non_string_types(0.066s) - ✅
test_malformed_json(0.019s) - ✅
test_oversized_json_values(0.010s) - ✅
test_sql_injection_in_json(0.012s) - ✅
test_xss_in_json(0.010s) - ✅
test_non_dict_json(0.030s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.001s) - ✅
test_unset_origins_return_empty_list(0.001s) - ✅
test_wildcard_origin_is_rejected(0.002s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.001s) - ✅
test_cors_response_requires_an_allowed_origin(0.014s)
TestHTTPErrorHandlers¶
- ✅
test_405_method_not_allowed(0.013s) - ✅
test_413_payload_too_large(0.028s) - ✅
test_400_bad_request_missing_required_fields(0.025s) - ✅
test_415_unsupported_media_type(0.011s) - ✅
test_empty_request_body_post(0.010s) - ✅
test_invalid_json_syntax(0.029s) - ✅
test_null_bytes_in_input(0.003s) - ✅
test_404_not_found(0.008s) - ✅
test_very_long_query_string(0.016s) - ✅
test_unicode_normalization_attack(0.009s) - ✅
test_multiple_content_types(0.010s) - ✅
test_header_injection_attempts(0.003s) - ✅
test_content_type_without_charset(0.656s) - ✅
test_trailing_slash_handling(0.016s) - ✅
test_case_sensitive_endpoints(0.013s) - ✅
test_double_slash_in_path(0.010s) - ✅
test_parameter_without_value(0.010s) - ✅
test_cors_preflight_request(0.009s) - ✅
test_response_headers_present(0.009s) - ✅
test_url_encoding_in_parameters(0.440s) - ✅
test_repeated_parameters(0.374s)
TestInputValidation¶
- ✅
test_valid_input(0.001s) - ✅
test_whitespace_trimming(0.001s) - ✅
test_empty_string(0.001s) - ✅
test_none_value(0.001s) - ✅
test_whitespace_only(0.001s) - ✅
test_exceeds_max_length(0.001s) - ✅
test_non_string_type(0.001s) - ✅
test_special_characters_rejected(0.001s) - ✅
test_unicode_cities_allowed(0.001s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.010s) - ✅
test_headers_on_error(0.010s)
test_api¶
- ✅
test_post_weather_missing_body(0.043s) - ✅
test_post_weather_missing_fields(0.011s) - ✅
test_health_check(0.028s) - ✅
test_post_weather_success(0.020s) - ✅
test_liveness_probe(0.010s) - ✅
test_readiness_probe(0.124s) - ✅
test_get_weather_client_error(0.015s) - ✅
test_post_weather_client_error(0.012s) - ✅
test_post_weather_invalid_json(0.010s) - ✅
test_invalid_endpoint(0.010s) - ✅
test_oversized_request_body(0.010s) - ✅
test_invalid_http_method(0.008s) - ✅
test_x_request_id_header(0.009s) - ✅
test_cache_zero_duration(0.011s) - ✅
test_weather_coordinates_endpoint(0.502s) - ✅
test_get_weather_missing_parameters(0.028s) - ✅
test_get_weather_missing_city(0.010s) - ✅
test_get_weather_success(0.013s) - ✅
test_weather_caching_same_bucket(0.015s) - ✅
test_weather_cache_invalidation(0.019s) - ✅
test_cache_with_different_locations(0.014s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.001s) - ✅
test_invalid_content_type_post(0.009s) - ✅
test_malformed_json_body(0.009s) - ✅
test_weather_coordinates_missing_params(0.010s) - ✅
test_weather_coordinates_invalid_latitude(0.013s) - ✅
test_weather_coordinates_invalid_longitude(0.010s) - ✅
test_recent_searches_get(0.008s) - ✅
test_recent_searches_delete(0.008s) - ✅
test_versioned_weather_get(0.539s) - ✅
test_versioned_weather_post(0.009s)
test_client¶
- ✅
test_weather_client_initialization(0.013s) - ✅
test_humidity_extraction_with_parent_element(0.017s) - ✅
test_extract_weather_from_json_invalid_json(0.020s) - ✅
test_extract_humidity_not_found(0.016s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.008s) - ✅
test_extract_wind_speed_not_found(0.014s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.005s) - ✅
test_weather_client_context_manager(0.008s) - ✅
test_extract_temperature(0.444s) - ✅
test_extract_weather_from_json_missing_keys(0.031s) - ✅
test_async_get_weather_by_coordinates_success(0.074s) - ✅
test_mph_to_kmh_conversion(0.010s) - ✅
test_ms_to_kmh_conversion(0.010s) - ✅
test_extract_weather_json_empty_forecast(0.021s) - ✅
test_get_weather_with_json_extraction(0.020s) - ✅
test_extract_weather_json_no_hourly(0.010s) - ✅
test_get_weather_fallback_to_html(0.444s) - ✅
test_extract_weather_json_empty_hourly(0.010s) - ✅
test_extract_weather_json_exception(0.010s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.015s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.012s) - ✅
test_extract_condition(0.010s) - ✅
test_extract_humidity(0.009s) - ✅
test_extract_wind_speed(0.011s) - ✅
test_extract_weather_from_json_success(0.010s) - ✅
test_extract_weather_from_json_no_script_tag(0.007s) - ✅
test_get_weather_request_exception(0.006s) - ✅
test_fahrenheit_to_celsius_conversion(0.007s) - ✅
test_extract_temperature_not_found(0.014s) - ✅
test_extract_condition_not_found(0.010s)
test_config_secret_key¶
- ✅
test_file_takes_precedence_over_environment(0.002s) - ✅
test_short_key_is_rejected_in_production(0.002s) - ✅
test_environment_value_is_used_when_no_file(0.001s) - ✅
test_placeholder_is_rejected_in_production(0.002s) - ✅
test_unreadable_file_is_an_error(0.003s) - ✅
test_development_generates_a_key_when_unset(0.001s)
test_models¶
- ✅
test_location_creation(0.001s) - ✅
test_location_with_coordinates(0.001s) - ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.001s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.003s) - ✅
test_high_bandit_finding_fails(0.003s) - ✅
test_lower_bandit_severity_does_not_fail(0.002s) - ✅
test_scanner_error_and_missing_report_fail(0.002s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.003s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.003s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.003s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.003s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.003s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.003s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.003s)
Unit Tests (Python 3.13)¶
Summary: 138/138 passed • Duration: 5.07s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.045s) - ✅
test_multiple_invalid_requests(0.046s)
TestAPISecurityGET¶
- ✅
test_sql_injection_attempts(0.016s) - ✅
test_xss_attempts(0.020s) - ✅
test_path_traversal_attempts(0.016s) - ✅
test_oversized_input(0.027s) - ✅
test_command_injection_attempts(0.022s) - ✅
test_null_bytes(0.004s) - ✅
test_empty_parameters(0.010s) - ✅
test_whitespace_only_parameters(0.008s)
TestAPISecurityPOST¶
- ✅
test_non_string_types(0.036s) - ✅
test_malformed_json(0.018s) - ✅
test_sql_injection_in_json(0.010s) - ✅
test_oversized_json_values(0.009s) - ✅
test_xss_in_json(0.010s) - ✅
test_non_dict_json(0.026s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.001s) - ✅
test_unset_origins_return_empty_list(0.001s) - ✅
test_wildcard_origin_is_rejected(0.001s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.001s) - ✅
test_cors_response_requires_an_allowed_origin(0.013s)
TestHTTPErrorHandlers¶
- ✅
test_405_method_not_allowed(0.013s) - ✅
test_413_payload_too_large(0.025s) - ✅
test_400_bad_request_missing_required_fields(0.022s) - ✅
test_404_not_found(0.008s) - ✅
test_empty_request_body_post(0.007s) - ✅
test_415_unsupported_media_type(0.006s) - ✅
test_invalid_json_syntax(0.020s) - ✅
test_null_bytes_in_input(0.003s) - ✅
test_very_long_query_string(0.015s) - ✅
test_unicode_normalization_attack(0.008s) - ✅
test_content_type_without_charset(0.517s) - ✅
test_header_injection_attempts(0.003s) - ✅
test_trailing_slash_handling(0.011s) - ✅
test_double_slash_in_path(0.006s) - ✅
test_url_encoding_in_parameters(0.702s) - ✅
test_parameter_without_value(0.006s) - ✅
test_cors_preflight_request(0.006s) - ✅
test_response_headers_present(0.006s) - ✅
test_multiple_content_types(0.006s) - ✅
test_case_sensitive_endpoints(0.008s) - ✅
test_repeated_parameters(0.783s)
TestInputValidation¶
- ✅
test_non_string_type(0.001s) - ✅
test_special_characters_rejected(0.001s) - ✅
test_unicode_cities_allowed(0.001s) - ✅
test_valid_input(0.001s) - ✅
test_whitespace_trimming(0.001s) - ✅
test_empty_string(0.001s) - ✅
test_none_value(0.001s) - ✅
test_whitespace_only(0.001s) - ✅
test_exceeds_max_length(0.001s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.015s) - ✅
test_headers_on_error(0.014s)
test_api¶
- ✅
test_health_check(0.020s) - ✅
test_liveness_probe(0.009s) - ✅
test_readiness_probe(0.255s) - ✅
test_weather_caching_same_bucket(0.031s) - ✅
test_weather_cache_invalidation(0.012s) - ✅
test_cache_with_different_locations(0.012s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.001s) - ✅
test_invalid_content_type_post(0.007s) - ✅
test_malformed_json_body(0.008s) - ✅
test_weather_coordinates_invalid_latitude(0.008s) - ✅
test_weather_coordinates_invalid_longitude(0.007s) - ✅
test_recent_searches_get(0.007s) - ✅
test_recent_searches_delete(0.007s) - ✅
test_versioned_weather_get(0.698s) - ✅
test_post_weather_missing_body(0.025s) - ✅
test_post_weather_missing_fields(0.011s) - ✅
test_get_weather_missing_parameters(0.019s) - ✅
test_post_weather_success(0.013s) - ✅
test_get_weather_missing_city(0.011s) - ✅
test_get_weather_client_error(0.015s) - ✅
test_get_weather_success(0.017s) - ✅
test_post_weather_client_error(0.013s) - ✅
test_post_weather_invalid_json(0.010s) - ✅
test_oversized_request_body(0.012s) - ✅
test_invalid_endpoint(0.009s) - ✅
test_invalid_http_method(0.009s) - ✅
test_x_request_id_header(0.008s) - ✅
test_cache_zero_duration(0.011s) - ✅
test_weather_coordinates_endpoint(0.920s) - ✅
test_versioned_weather_post(0.007s) - ✅
test_weather_coordinates_missing_params(0.009s)
test_client¶
- ✅
test_extract_humidity_not_found(0.014s) - ✅
test_extract_weather_from_json_invalid_json(0.014s) - ✅
test_weather_client_initialization(0.012s) - ✅
test_humidity_extraction_with_parent_element(0.018s) - ✅
test_extract_wind_speed_not_found(0.010s) - ✅
test_extract_weather_from_json_missing_keys(0.011s) - ✅
test_weather_client_context_manager(0.008s) - ✅
test_mph_to_kmh_conversion(0.010s) - ✅
test_get_weather_with_json_extraction(0.012s) - ✅
test_ms_to_kmh_conversion(0.011s) - ✅
test_get_weather_fallback_to_html(0.286s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.006s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.002s) - ✅
test_async_get_weather_by_coordinates_success(0.070s) - ✅
test_extract_temperature(0.288s) - ✅
test_extract_weather_json_empty_forecast(0.010s) - ✅
test_extract_weather_json_no_hourly(0.009s) - ✅
test_extract_weather_json_empty_hourly(0.009s) - ✅
test_extract_weather_json_exception(0.009s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.014s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.012s) - ✅
test_extract_condition(0.006s) - ✅
test_extract_humidity(0.006s) - ✅
test_extract_wind_speed(0.006s) - ✅
test_get_weather_request_exception(0.007s) - ✅
test_extract_weather_from_json_success(0.006s) - ✅
test_fahrenheit_to_celsius_conversion(0.006s) - ✅
test_extract_weather_from_json_no_script_tag(0.006s) - ✅
test_extract_temperature_not_found(0.006s) - ✅
test_extract_condition_not_found(0.006s)
test_config_secret_key¶
- ✅
test_file_takes_precedence_over_environment(0.001s) - ✅
test_environment_value_is_used_when_no_file(0.001s) - ✅
test_short_key_is_rejected_in_production(0.001s) - ✅
test_placeholder_is_rejected_in_production(0.001s) - ✅
test_unreadable_file_is_an_error(0.001s) - ✅
test_development_generates_a_key_when_unset(0.001s)
test_models¶
- ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.001s) - ✅
test_location_creation(0.001s) - ✅
test_location_with_coordinates(0.001s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.002s) - ✅
test_high_bandit_finding_fails(0.002s) - ✅
test_lower_bandit_severity_does_not_fail(0.002s) - ✅
test_scanner_error_and_missing_report_fail(0.001s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.002s)
Unit Tests (Python 3.14)¶
Summary: 138/138 passed • Duration: 4.42s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.030s) - ✅
test_multiple_invalid_requests(0.029s)
TestAPISecurityGET¶
- ✅
test_sql_injection_attempts(0.020s) - ✅
test_xss_attempts(0.016s) - ✅
test_path_traversal_attempts(0.012s) - ✅
test_command_injection_attempts(0.015s) - ✅
test_oversized_input(0.011s) - ✅
test_null_bytes(0.003s) - ✅
test_empty_parameters(0.005s) - ✅
test_whitespace_only_parameters(0.005s)
TestAPISecurityPOST¶
- ✅
test_non_string_types(0.018s) - ✅
test_malformed_json(0.011s) - ✅
test_sql_injection_in_json(0.006s) - ✅
test_xss_in_json(0.006s) - ✅
test_oversized_json_values(0.007s) - ✅
test_non_dict_json(0.017s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.001s) - ✅
test_unset_origins_return_empty_list(0.001s) - ✅
test_wildcard_origin_is_rejected(0.001s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.001s) - ✅
test_cors_response_requires_an_allowed_origin(0.022s)
TestHTTPErrorHandlers¶
- ✅
test_405_method_not_allowed(0.008s) - ✅
test_413_payload_too_large(0.020s) - ✅
test_400_bad_request_missing_required_fields(0.015s) - ✅
test_404_not_found(0.006s) - ✅
test_415_unsupported_media_type(0.006s) - ✅
test_empty_request_body_post(0.006s) - ✅
test_invalid_json_syntax(0.014s) - ✅
test_null_bytes_in_input(0.002s) - ✅
test_very_long_query_string(0.006s) - ✅
test_unicode_normalization_attack(0.006s) - ✅
test_content_type_without_charset(0.735s) - ✅
test_header_injection_attempts(0.003s) - ✅
test_trailing_slash_handling(0.008s) - ✅
test_double_slash_in_path(0.004s) - ✅
test_url_encoding_in_parameters(0.562s) - ✅
test_repeated_parameters(0.603s) - ✅
test_multiple_content_types(0.004s) - ✅
test_case_sensitive_endpoints(0.006s) - ✅
test_cors_preflight_request(0.004s) - ✅
test_response_headers_present(0.004s) - ✅
test_parameter_without_value(0.005s)
TestInputValidation¶
- ✅
test_valid_input(0.001s) - ✅
test_whitespace_trimming(0.000s) - ✅
test_empty_string(0.000s) - ✅
test_none_value(0.000s) - ✅
test_whitespace_only(0.000s) - ✅
test_exceeds_max_length(0.000s) - ✅
test_non_string_type(0.001s) - ✅
test_special_characters_rejected(0.001s) - ✅
test_unicode_cities_allowed(0.001s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.007s) - ✅
test_headers_on_error(0.006s)
test_api¶
- ✅
test_weather_caching_same_bucket(0.028s) - ✅
test_health_check(0.020s) - ✅
test_weather_cache_invalidation(0.013s) - ✅
test_liveness_probe(0.006s) - ✅
test_readiness_probe(0.161s) - ✅
test_cache_with_different_locations(0.073s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.002s) - ✅
test_invalid_content_type_post(0.007s) - ✅
test_malformed_json_body(0.006s) - ✅
test_weather_coordinates_invalid_latitude(0.007s) - ✅
test_weather_coordinates_invalid_longitude(0.006s) - ✅
test_recent_searches_get(0.006s) - ✅
test_recent_searches_delete(0.006s) - ✅
test_versioned_weather_get(1.084s) - ✅
test_post_weather_missing_body(0.026s) - ✅
test_get_weather_missing_parameters(0.015s) - ✅
test_post_weather_missing_fields(0.008s) - ✅
test_get_weather_missing_city(0.008s) - ✅
test_post_weather_success(0.010s) - ✅
test_get_weather_success(0.009s) - ✅
test_get_weather_client_error(0.013s) - ✅
test_oversized_request_body(0.010s) - ✅
test_invalid_http_method(0.006s) - ✅
test_post_weather_client_error(0.010s) - ✅
test_x_request_id_header(0.006s) - ✅
test_post_weather_invalid_json(0.008s) - ✅
test_cache_zero_duration(0.009s) - ✅
test_invalid_endpoint(0.007s) - ✅
test_weather_coordinates_endpoint(0.933s) - ✅
test_weather_coordinates_missing_params(0.006s) - ✅
test_versioned_weather_post(0.008s)
test_client¶
- ✅
test_extract_weather_from_json_invalid_json(0.016s) - ✅
test_weather_client_initialization(0.014s) - ✅
test_extract_humidity_not_found(0.015s) - ✅
test_humidity_extraction_with_parent_element(0.021s) - ✅
test_extract_wind_speed_not_found(0.016s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.002s) - ✅
test_weather_client_context_manager(0.009s) - ✅
test_extract_temperature(0.214s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.001s) - ✅
test_async_get_weather_by_coordinates_success(0.057s) - ✅
test_extract_weather_from_json_missing_keys(0.011s) - ✅
test_get_weather_with_json_extraction(0.012s) - ✅
test_mph_to_kmh_conversion(0.014s) - ✅
test_get_weather_fallback_to_html(0.221s) - ✅
test_ms_to_kmh_conversion(0.012s) - ✅
test_extract_weather_json_empty_forecast(0.010s) - ✅
test_extract_weather_json_no_hourly(0.010s) - ✅
test_extract_weather_json_empty_hourly(0.010s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.013s) - ✅
test_extract_weather_json_exception(0.011s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.013s) - ✅
test_extract_condition(0.009s) - ✅
test_extract_humidity(0.009s) - ✅
test_extract_wind_speed(0.009s) - ✅
test_get_weather_request_exception(0.009s) - ✅
test_extract_weather_from_json_success(0.008s) - ✅
test_fahrenheit_to_celsius_conversion(0.011s) - ✅
test_extract_weather_from_json_no_script_tag(0.009s) - ✅
test_extract_temperature_not_found(0.007s) - ✅
test_extract_condition_not_found(0.009s)
test_config_secret_key¶
- ✅
test_file_takes_precedence_over_environment(0.001s) - ✅
test_environment_value_is_used_when_no_file(0.000s) - ✅
test_short_key_is_rejected_in_production(0.001s) - ✅
test_placeholder_is_rejected_in_production(0.001s) - ✅
test_unreadable_file_is_an_error(0.001s) - ✅
test_development_generates_a_key_when_unset(0.001s)
test_models¶
- ✅
test_location_creation(0.001s) - ✅
test_location_with_coordinates(0.000s) - ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.001s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.002s) - ✅
test_high_bandit_finding_fails(0.001s) - ✅
test_lower_bandit_severity_does_not_fail(0.001s) - ✅
test_scanner_error_and_missing_report_fail(0.001s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.002s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.001s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.001s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.001s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.002s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.002s)
Unit Tests (Python 3.15)¶
Summary: 138/138 passed • Duration: 3.97s
TestAPIRateLimiting¶
- ✅
test_multiple_valid_requests(0.016s) - ✅
test_multiple_invalid_requests(0.020s)
TestAPISecurityGET¶
- ✅
test_sql_injection_attempts(0.005s) - ✅
test_xss_attempts(0.006s) - ✅
test_path_traversal_attempts(0.004s) - ✅
test_command_injection_attempts(0.006s) - ✅
test_null_bytes(0.001s) - ✅
test_oversized_input(0.004s) - ✅
test_empty_parameters(0.003s) - ✅
test_whitespace_only_parameters(0.004s)
TestAPISecurityPOST¶
- ✅
test_non_string_types(0.010s) - ✅
test_sql_injection_in_json(0.005s) - ✅
test_xss_in_json(0.004s) - ✅
test_non_dict_json(0.011s) - ✅
test_oversized_json_values(0.005s) - ✅
test_malformed_json(0.005s)
TestCorsConfiguration¶
- ✅
test_explicit_origins_are_normalized(0.000s) - ✅
test_unset_origins_return_empty_list(0.000s) - ✅
test_wildcard_origin_is_rejected(0.001s) - ✅
test_wildcard_mixed_with_explicit_origins_is_rejected(0.000s) - ✅
test_cors_response_requires_an_allowed_origin(0.006s)
TestHTTPErrorHandlers¶
- ✅
test_405_method_not_allowed(0.006s) - ✅
test_413_payload_too_large(0.012s) - ✅
test_400_bad_request_missing_required_fields(0.010s) - ✅
test_415_unsupported_media_type(0.004s) - ✅
test_invalid_json_syntax(0.011s) - ✅
test_404_not_found(0.003s) - ✅
test_empty_request_body_post(0.004s) - ✅
test_content_type_without_charset(0.474s) - ✅
test_null_bytes_in_input(0.001s) - ✅
test_very_long_query_string(0.004s) - ✅
test_multiple_content_types(0.003s) - ✅
test_case_sensitive_endpoints(0.004s) - ✅
test_trailing_slash_handling(0.005s) - ✅
test_double_slash_in_path(0.003s) - ✅
test_url_encoding_in_parameters(0.765s) - ✅
test_parameter_without_value(0.003s) - ✅
test_cors_preflight_request(0.003s) - ✅
test_response_headers_present(0.003s) - ✅
test_unicode_normalization_attack(0.004s) - ✅
test_header_injection_attempts(0.004s) - ✅
test_repeated_parameters(0.618s)
TestInputValidation¶
- ✅
test_valid_input(0.000s) - ✅
test_whitespace_trimming(0.000s) - ✅
test_empty_string(0.000s) - ✅
test_none_value(0.000s) - ✅
test_whitespace_only(0.000s) - ✅
test_exceeds_max_length(0.000s) - ✅
test_non_string_type(0.000s) - ✅
test_special_characters_rejected(0.000s) - ✅
test_unicode_cities_allowed(0.000s)
TestSecurityHeaders¶
- ✅
test_headers_on_success(0.003s) - ✅
test_headers_on_error(0.003s)
test_api¶
- ✅
test_post_weather_missing_body(0.020s) - ✅
test_post_weather_missing_fields(0.007s) - ✅
test_post_weather_success(0.006s) - ✅
test_get_weather_client_error(0.008s) - ✅
test_post_weather_client_error(0.006s) - ✅
test_post_weather_invalid_json(0.007s) - ✅
test_invalid_endpoint(0.005s) - ✅
test_weather_caching_same_bucket(0.007s) - ✅
test_weather_cache_invalidation(0.083s) - ✅
test_health_check(0.082s) - ✅
test_liveness_probe(0.005s) - ✅
test_readiness_probe(0.113s) - ✅
test_oversized_request_body(0.014s) - ✅
test_cache_with_different_locations(0.008s) - ✅
test_invalid_http_method(0.005s) - ✅
test_cache_size_configuration(0.001s) - ✅
test_cache_duration_configuration(0.000s) - ✅
test_x_request_id_header(0.005s) - ✅
test_invalid_content_type_post(0.004s) - ✅
test_cache_zero_duration(0.007s) - ✅
test_malformed_json_body(0.005s) - ✅
test_weather_coordinates_invalid_latitude(0.016s) - ✅
test_weather_coordinates_endpoint(0.758s) - ✅
test_weather_coordinates_invalid_longitude(0.004s) - ✅
test_recent_searches_get(0.003s) - ✅
test_recent_searches_delete(0.004s) - ✅
test_versioned_weather_get(0.538s) - ✅
test_get_weather_missing_parameters(0.009s) - ✅
test_get_weather_missing_city(0.004s) - ✅
test_get_weather_success(0.005s) - ✅
test_versioned_weather_post(0.004s) - ✅
test_weather_coordinates_missing_params(0.003s)
test_client¶
- ✅
test_extract_humidity_not_found(0.010s) - ✅
test_extract_weather_from_json_invalid_json(0.011s) - ✅
test_humidity_extraction_with_parent_element(0.010s) - ✅
test_weather_client_initialization(0.009s) - ✅
test_weather_client_context_manager(0.005s) - ✅
test_extract_weather_from_json_missing_keys(0.010s) - ✅
test_extract_temperature(0.153s) - ✅
test_get_weather_by_coordinates_geocode_failure(0.002s) - ✅
test_get_weather_by_coordinates_geocode_exception(0.001s) - ✅
test_async_get_weather_by_coordinates_success(0.052s) - ✅
test_get_weather_with_json_extraction(0.008s) - ✅
test_extract_wind_speed_not_found(0.006s) - ✅
test_mph_to_kmh_conversion(0.006s) - ✅
test_ms_to_kmh_conversion(0.006s) - ✅
test_extract_weather_json_empty_forecast(0.007s) - ✅
test_get_weather_fallback_to_html(0.163s) - ✅
test_extract_weather_json_no_hourly(0.006s) - ✅
test_extract_weather_json_empty_hourly(0.005s) - ✅
test_extract_weather_json_exception(0.004s) - ✅
test_async_get_weather_by_coordinates_geocode_failure(0.010s) - ✅
test_async_get_weather_by_coordinates_geocode_exception(0.007s) - ✅
test_extract_condition(0.007s) - ✅
test_extract_humidity(0.006s) - ✅
test_extract_wind_speed(0.006s) - ✅
test_extract_weather_from_json_success(0.004s) - ✅
test_extract_weather_from_json_no_script_tag(0.004s) - ✅
test_get_weather_request_exception(0.006s) - ✅
test_fahrenheit_to_celsius_conversion(0.006s) - ✅
test_extract_temperature_not_found(0.006s) - ✅
test_extract_condition_not_found(0.006s)
test_config_secret_key¶
- ✅
test_environment_value_is_used_when_no_file(0.000s) - ✅
test_file_takes_precedence_over_environment(0.001s) - ✅
test_short_key_is_rejected_in_production(0.000s) - ✅
test_placeholder_is_rejected_in_production(0.000s) - ✅
test_unreadable_file_is_an_error(0.001s) - ✅
test_development_generates_a_key_when_unset(0.000s)
test_models¶
- ✅
test_location_creation(0.000s) - ✅
test_location_with_coordinates(0.000s) - ✅
test_weather_data_creation(0.001s) - ✅
test_weather_data_validation(0.000s)
test_security_reports¶
- ✅
test_clean_reports_pass(0.001s) - ✅
test_high_bandit_finding_fails(0.001s) - ✅
test_lower_bandit_severity_does_not_fail(0.001s) - ✅
test_scanner_error_and_missing_report_fail(0.001s) - ✅
test_missing_required_report_fields_fail[bandit-report.json-results](0.001s) - ✅
test_missing_required_report_fields_fail[semgrep-report.json-results](0.001s) - ✅
test_missing_required_report_fields_fail[pip-audit-report.json-dependencies](0.001s) - ✅
test_required_report_fields_must_be_lists[None-bandit-report.json-results](0.001s) - ✅
test_required_report_fields_must_be_lists[None-pip-audit-report.json-dependencies](0.001s) - ✅
test_required_report_fields_must_be_lists[None-semgrep-report.json-results](0.001s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-bandit-report.json-results](0.001s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-pip-audit-report.json-dependencies](0.001s) - ✅
test_required_report_fields_must_be_lists[invalid_value1-semgrep-report.json-results](0.001s)
Unit Tests (Python integration)¶
Summary: 17/17 passed • Duration: 1.77s
TestContainerizedAPI¶
- ✅
test_health_endpoint(0.429s) - ✅
test_get_weather_missing_params(0.009s) - ✅
test_get_weather_with_valid_params(0.493s) - ✅
test_post_weather_with_valid_data(0.483s) - ✅
test_sql_injection_blocked(0.040s) - ✅
test_xss_blocked(0.011s) - ✅
test_path_traversal_blocked(0.007s) - ✅
test_command_injection_blocked(0.012s) - ✅
test_oversized_input_blocked(0.003s) - ✅
test_type_confusion_post(0.016s) - ✅
test_malformed_json_post(0.004s) - ✅
test_empty_parameters_blocked(0.004s) - ✅
test_whitespace_only_blocked(0.004s) - ✅
test_cors_headers_present(0.003s) - ✅
test_multiple_concurrent_requests(0.027s) - ✅
test_container_health_check(0.020s) - ✅
test_api_logs_no_errors(0.020s)
🔗 Related Documentation¶
- Coverage Report - Detailed code coverage analysis
- Security Report - Security scan results
- CI/CD Status - Pipeline execution details
This report is auto-generated from CI/CD pipeline execution.
Generated by scripts/generate_reports.py.