Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.15 KB

Python bug squash

One of our internal tools includes hooks to perform functions like building AWS lambda payloads from a configuration file and uploading them to S3.

The content hash generated by the AWS lambda hook seems to change periodically, and is different across machines even when nothing else has changed. The expected behaviour of the hook is for the generated payload to be uploaded only when the user configuration has changed. So if the hook is run on two separate machines for the same configuration file the resulting payload should only be uploaded once.

Running the tests

Locally

First make sure you have python <= 3.9, pip, & virtualenv installed. Then instantiate a virtualenv and activate it:

virtualenv psq-bug-squash
. ./psq-bug-squash/bin/activate

Now install all the necessary dependencies:

pip install -r requirements.txt

You should now be able to run the test suite from the top level directory of the repo:

nosetests --exe

Docker

Run this command which will build the docker image, and run a bash shell inside it:

make shell

Then directly in the docker container:

$ nosetests --exe