openfun / jitsi-magnify

An authentication and room management system for Jitsi built with Django/React
MIT License
23 stars 6 forks source link

💚(factories) fix randomly failing tests due to fields uniqueness #168

Closed sampaccoud closed 1 year ago

sampaccoud commented 1 year ago

Purpose

Usernames and room slugs are unique in database but Faker can sometimes generate 2 objects with the same value for these fields.

Proposal

To prevent this we introduce a UniqueFaker util.