kitware-resonant / dkc-next

Apache License 2.0
3 stars 0 forks source link

Use a sequence to ensure that factories produce unique output #138

Closed brianhelba closed 3 years ago

brianhelba commented 3 years ago

Using a fixed random seed only ensures that the current set of tests consistently succeed, but there's no guarantee that future tests will continue to be lucky. Additionally, using the mock_db tool can still result in illegal duplicates.

The pattern of using Factory Boy Sequences with Faker was suggested by: https://github.com/FactoryBoy/factory_boy/issues/835