cardinalitypuzzles / cardboard

Dashboard for managing puzzles and tracking status during a puzzle hunt
MIT License
31 stars 21 forks source link

Tests are not completely isolated when running with Google environmental variables #539

Open rgossiaux opened 2 years ago

rgossiaux commented 2 years ago

Noticed this just now working on #538 and confirmed it's a problem on master. If you have a complete .env locally, start docker, and run tests inside the docker container, celery tasks end up actually getting created and executing, leading to messages like:

celery_1 | [2022-01-07 03:00:36,328: INFO/ForkPoolWorker-5] Task google_api_lib.tasks.rename_sheet[22036fae-e227-4ebb-aea6-32008de276b2] retry: Retry in 1s: <HttpError 404 when requesting https://sheets.googleapis.com/v4/spreadsheets/stsheet.co:batchUpdate?alt=json returned "Requested entity was not found.". Details: "Requested entity was not found.">

which is obviously not great.