washingtonpost / elex-live-model

a model to generate estimates of the number of outstanding votes on an election night based on the current results of the race
48 stars 5 forks source link

Fix unit tests #48

Closed lennybronner closed 1 year ago

lennybronner commented 1 year ago

Description

pytest unit tests break because pytest does not have access to the environment variables to create the s3 path for. Our unit tests were writing results to s3 since we were using the default save_output parameter, which defaults to ['results']. We now pass in an empty list to save_output to avoid writing to s3 from the unit tests.

Test Steps

No unit tests should fail when running: pytest or tox