aws-serverless-airline-booking
aws-serverless-airline-booking copied to clipboard
[Booking] Create unit tests
Booking is currently written in Python, and needs unit testing for the following functions:
- [ ] cancel-booking
- [ ] confirm-booking
- [ ] notify-booking
- [ ] reserve-booking
Dev tools, linting and styling standards are to be merged by PR https://github.com/aws-samples/aws-serverless-airline-booking/pull/27
hi @heitorlessa! I'm wondering with the introduction of process_booking_handler
lambda layer, how would you like to make available the shared folder across during the unit test execution? cheers!
hey @esteban-uo - I've created an .env
file in the root of the project to account for that: https://github.com/aws-samples/aws-serverless-airline-booking/blob/develop/.env
That said, I haven't tried that with Pytest and whether that would work - VSCode works as we're extending PYTHONPATH to include that shared code.