ScottishCovidResponse / SCRCIssueTracking

Central issue tracking repository for all repos in the consortium
6 stars 0 forks source link

PyTest `yield_fixture` is deprecated, use `fixture` instead in unit tests. #777

Closed kzscisoft closed 3 years ago

kzscisoft commented 3 years ago

In test running:

SCRC/data_pipeline_api/tests/registry/test_upload.py:23: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
  Use @pytest.fixture instead; they are the same.
    @pytest.yield_fixture(autouse=True)

-- Docs: https://docs.pytest.org/en/stable/warnings.html