Page MenuHomeSoftware Heritage

settings/tests: Disable keycloak use when not running pytest
ClosedPublic

Authored by anlambert on May 27 2021, 4:13 PM.

Details

Summary

It enables to fallback to django base authentication backend when
not running pytest, for instance when running cypress tests or
when using the run-django-webpack-memory-storages make target.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5791 (id=20700)

Rebasing onto 15168bc3cc...

Current branch diff-target is up to date.
Changes applied before test
commit 93df4498df8f91f61bb6cd3673c849535e6fbd86
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu May 27 16:07:34 2021 +0200

    settings/tests: Disable keycloak use when not running pytest
    
    It enables to fallback to django base authentication backend when
    not running pytest, for instance when running cypress tests or
    when using the run-django-webpack-memory-storages make target.

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

This revision is now accepted and ready to land.May 27 2021, 4:46 PM