Page MenuHomeSoftware Heritage

settings/tests: Fix tests when using pytest-xdist

Authored by anlambert on Jan 22 2020, 5:04 PM.



This fixes the tests when using the parallelization feature of pytest-xdist.

We gain at least 10 seconds on the overall tests execution time using 4 workers.

Diff Detail

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

Event Timeline

anlambert created this revision.Jan 22 2020, 5:04 PM
vlorentz accepted this revision.Jan 22 2020, 5:16 PM
vlorentz added a subscriber: vlorentz.

I really don't like this conditional...

This revision is now accepted and ready to land.Jan 22 2020, 5:16 PM
This revision was automatically updated to reflect the committed changes.