Bump pytest version and add current directory to python path for reviewboard

Review Request #12289 — Created May 18, 2022 and submitted — Latest diff uploaded


Review Board


Depending on the order in which Python packages are installed and added to the
Python Path, running unit tests using pytest <args> can be broken due to
pytest picking up the wrong test.settings module. For example instead of
picking up the Reviewboard test settings it could pick up the Django Evolution
or Djblets one. This can be fixed by forcing pytest to consider the current
directory in the Python search path. To do so we update our pytest to the latest
version (any version >7 works) and set pytest's pythonpath config variable to
include the current directory.

Ran ./setup.py develop --all-pyvers to ensure that pytest 7.1.2 was
installed and successfully ran unit tests using pytest reviewboard