The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
........F..                                                              [100%]
=================================== FAILURES ===================================
___________________ TestSettingsApi.test_reset_and_reset_all ___________________

self = <tests.test_api_attachments_phones_suppression_settings_logs.TestSettingsApi object at 0x7f9062b84950>
api = <starlette.testclient.TestClient object at 0x7f905c85d5d0>

    def test_reset_and_reset_all(self, api):
        api.post("/settings/save", headers=H(api), json={"key": "amount_min", "value": 77})
        api.post("/settings/save", headers=H(api), json={"key": "amount_max", "value": 888})
        r = api.post("/settings/reset", headers=H(api), json={"key": "amount_min"})
        assert r.status_code == 200
        row = [s for s in api.get("/settings/list").json()["settings"]
               if s["key"] == "amount_min"][0]
        assert row["is_default"] is True
        r2 = api.post("/settings/reset-all", headers=H(api))
>       assert r2.status_code == 200 and r2.json()["reset"] == 1  # only amount_max left
E       assert (200 == 200 and 5 == 1)
E        +  where 200 = <Response [200 OK]>.status_code

tests/test_api_attachments_phones_suppression_settings_logs.py:451: AssertionError
=========================== short test summary info ============================
FAILED tests/test_api_attachments_phones_suppression_settings_logs.py::TestSettingsApi::test_reset_and_reset_all
1 failed, 10 passed in 8.91s
