I tried pytest again, and running this file in my project root directory lets me run all the tests in the tests directory:

from pathlib import Path

import pytest


pytest.main(["-p", "no:faulthandler", str(Path(__file__).parent / "tests")])