pytest-django and pytest-flask both declare a fixture named client and
the wrong one is picked when running swh-web tests.
So avoid the loading of pytest flask plugin to prevent errors when
running tests.
Differential D3050
pytest.ini: Avoid loading flask plugin to prevent fixture name clash anlambert on Apr 23 2020, 2:53 PM. Authored by
Details
pytest-django and pytest-flask both declare a fixture named client and So avoid the loading of pytest flask plugin to prevent errors when
Diff Detail
Event Timeline
Comment Actions Build is green Patch application report for D3050 (id=10850)Rebasing onto 6945c4efa4... Current branch diff-target is up to date. Changes applied before testcommit 98d53fedce7d9f60e9577ecf97e4761b3fa9c112 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Apr 23 14:50:03 2020 +0200 pytest.ini: Avoid loading flask plugin to prevent fixture name clash pytest-django and pytest-flask both declare a fixture named client and the wrong one is picked when running swh-web tests. So avoid the loading of pytest flask plugin to prevent errors when running tests. See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/80/ for more details.
|