Improve Python Path setup when running unit tests.
Review Request #12314 — Created May 31, 2022 and submitted — Latest diff uploaded
This makes three changes designed to help ensure the right environment
is in use when running unit tests:
conftest.pynow sets the Python Path before importingdjangoor
pytest, helping avoid anything important from loading before we
have the correct path.
pytestis now told to use the current directory as the default
Python Path.To enable that, we now depend on
pytest~=7.1.2on Python 3.
Unit tests pass.