aws-serverless-airline-booking icon indicating copy to clipboard operation
aws-serverless-airline-booking copied to clipboard

[Booking] Create unit tests

Open heitorlessa opened this issue 5 years ago • 2 comments

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

heitorlessa avatar Aug 26 '19 09:08 heitorlessa

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!

esteban-uo avatar Sep 16 '20 06:09 esteban-uo

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.

heitorlessa avatar Sep 16 '20 15:09 heitorlessa