Page MenuHomeSoftware Heritage

tests: Fix failures since pytest-django 4.5.0 release
ClosedPublic

Authored by anlambert on Dec 1 2021, 5:11 PM.

Details

Summary

Setting the reset_sequences parameter from the pytest.mark.django_db
decorator to True implies to also set the transactional one to True.

That requirement was hardened in latest pytest-django release.

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25281
Build 39515: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 39514: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D6718 (id=24404)

Rebasing onto 5d35154366...

Current branch diff-target is up to date.
Changes applied before test
commit 284eec7e758c24192153a7f2aea08067bcfb1ad2
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Dec 1 16:48:50 2021 +0100

    tests: Fix failures since pytest-django 4.5.0 release
    
    Setting the reset_sequences parameter from the pytest.mark.django_db
    decorator to True implies to also set the transactional one to True.
    
    That requirement was hardened in latest pytest-django release.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1255/ for more details.

This revision is now accepted and ready to land.Dec 1 2021, 5:36 PM