Add this section into pyproject.toml:
[tool.uv] package = true
Then run uv sync
uv sync
Now you should be able to import app in notebooks/testing
import app
https://docs.astral.sh/uv/concepts/projects/config/#project-packaging