ovh / celery-director

Simple and rapid framework to build workflows with Celery
https://ovh.github.io/celery-director/
BSD 3-Clause "New" or "Revised" License
534 stars 58 forks source link

chore: bump the environs package #179

Closed ncrocfer closed 1 year ago

ncrocfer commented 1 year ago

This PR bumps the environs package so it removes the warning messages in pytest:

Before

$ tests/test_api.py::test_pong -v
[...]
tests/test_api.py::test_pong
  /Users/ncrocfer/Dev/deploy/celery-director/venv/lib/python3.8/site-packages/marshmallow/fields.py:949: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead.
    super().__init__(**kwargs)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======================================================================== 1 passed, 41 warnings in 0.17s ========================================================================

After


$ pytest tests/test_api.py::test_pong -v
tests/test_api.py .                                                                                                                                                      [100%]

============================================================================== 1 passed in 0.23s ===============================================================================

The v8.0.0 introduces a breaking change, so we have to have to add the .env file in our env_path variable during the Flask Config initialization.