~ | | I didn't experience any problems with running unit tests using pytest but due to
|
~ | | the problems described in #12288, we are applying the same fixes here to prevent
|
~ | | those problems from happening here. |
| ~ | 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. |