Skip to content

Conversation

@giograno
Copy link
Member

Motivation

When snapshotting an exception, the best practice is to snapshot the actual response of the exception, instead of the ExceptionInfo object. In this way we can capture the proper code, message, and status code.
In addition, the test becomes more stable (e.g., here the test fails for a different traceback level).

Changes

  • Improve the snapshot as described.

@giograno giograno added the semver: patch Non-breaking changes which can be included in patch releases label Mar 11, 2025
@giograno giograno requested a review from silv-io March 11, 2025 17:17
@giograno giograno marked this pull request as ready for review March 11, 2025 17:18
Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thank you for the quick turnaround 🚀

@github-actions
Copy link

LocalStack Community integration with Pro

 2 files  ±    0   2 suites  ±0   30s ⏱️ - 1h 53m 46s
21 tests  - 4 104  19 ✅  - 3 786  2 💤  - 318  0 ❌ ±0 
23 runs   - 4 104  19 ✅  - 3 786  4 💤  - 318  0 ❌ ±0 

Results for commit 1caa831. ± Comparison against base commit da04939.

This pull request removes 4104 tests.
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_lambda_dynamodb
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_opensearch_crud
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_search_books
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_setup
tests.aws.scenario.kinesis_firehose.test_kinesis_firehose.TestKinesisFirehoseScenario ‑ test_kinesis_firehose_s3
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_destination_sns
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_infra
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_prefill_dynamodb_table
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input0-SUCCEEDED]
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input1-SUCCEEDED]
…

@giograno giograno merged commit 4f210f8 into master Mar 11, 2025
34 checks passed
@giograno giograno deleted the chore-improve-snapshot branch March 11, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants