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

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

Information

Review Board
release-5.0.x

Reviewers

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

Summary ID Author
Bump pytest version and add current directory to python path for reviewboard
faf76bf921bf9e1f9e1a8e51e30736776f320e1f Michelle
Description From Last Updated

Let's repeat the problem first, and leave off the experience with this change. Since the cause is due to an …

chipx86chipx86
maubin
maubin
chipx86
  1. 
      
  2. Show all issues

    Let's repeat the problem first, and leave off the experience with this change. Since the cause is due to an installation order issue, it could in theory happen with any of them.

    Generally-speaking, we aim to have each description/commit message stand on its own, rather than needing to refer to another (particularly in another codebase) for the context.

  3. 
      
maubin
david
  1. Ship It!
  2. 
      
maubin
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (cbd3308)