pytest-django and pytest-flask both declare a fixture named client and
the wrong one may be picked when running swh-scanner tests.
So avoid the loading of pytest django plugin to prevent errors when
running tests.
Differential D3052
pytest.ini: Avoid loading django plugin to prevent fixture name clash anlambert on Apr 23 2020, 2:59 PM. Authored by
Details
pytest-django and pytest-flask both declare a fixture named client and So avoid the loading of pytest django plugin to prevent errors when
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D3052 (id=10853)Rebasing onto 3bca054d47... Current branch diff-target is up to date. Changes applied before testcommit bdbc369bbf30a934a09683244233f7b85157f8fc Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Apr 23 14:58:18 2020 +0200 pytest.ini: Avoid loading django plugin to prevent fixture name clash pytest-django and pytest-flask both declare a fixture named client and the wrong one may be picked when running swh-scanner tests. So avoid the loading of pytest django plugin to prevent errors when running tests. Link to build: https://jenkins.softwareheritage.org/job/DTSCN/job/tests-on-diff/9/ |