Run prefect tests

Hello, I had to refactor the provided Dockerfile to use another base image and I want to run the supplied pytest. What would be the way to do it?, I tried:
$ git clone …
$ cd prefect
$ conda create -n prefect-dev python=3.10
$ conda activate prefect-dev
$ pip install -r requirements-dev.txt
$ pytest
ImportError while loading conftest ‘xxxx/prefect/tests/’.

It seems to be solved in tag 2.8.6, related to a deprecation

 pytest tests/ 
ImportError while loading conftest '/home/davidp/playground/prefect/tests/'.
tests/ in <module>
    from prefect.testing.cli import *
src/prefect/testing/ in <module>
    from prefect.cli import app
src/prefect/cli/ in <module>
src/prefect/cli/ in <module>
    login_api = FastAPI(on_startup=[set_login_api_ready_event])
../../miniconda3/envs/prefect-dev/lib/python3.10/site-packages/fastapi/ in __init__
    self.router: routing.APIRouter = routing.APIRouter(
../../miniconda3/envs/prefect-dev/lib/python3.10/site-packages/fastapi/ in __init__
../../miniconda3/envs/prefect-dev/lib/python3.10/site-packages/starlette/ in __init__
E   DeprecationWarning: The on_startup and on_shutdown parameters are deprecated, and they will be removed on version 1.0. Use the lifespan parameter instead. See more about it on

Found the root cause and solution for 2.8.4 in Ignore deprecation warning for starlette shutdown/startup hooks by madkinsz · Pull Request #8785 · PrefectHQ/prefect · GitHub

In file <root_repo>/setup.cfg
→ add line ignore::DeprecationWarning:starlette.routing (after line 58)