You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started wondering whether every test has their own random number generator or if they share the generator instance. I could imagine that if they share the generator instance then a change in the order of the tests might produce this sort of flakiness.
The text was updated successfully, but these errors were encountered:
Description
I've followed the advice at https://factoryboy.readthedocs.io/en/stable/recipes.html#using-reproducible-randomness, and it seems that when I run my test suite serially it works, however, whenever I run my test suite via pytest-xdist I get flakiness with the
Faker
attributes.To Reproduce
I created some standard factories (see below) and use them as fixtures in my pytest tests via pytest-factoryboy (https://pytest-factoryboy.readthedocs.io/en/stable/).
Model / Factory code
The issue
The faker attributes are changing between tests.
Note
I've started wondering whether every test has their own random number generator or if they share the generator instance. I could imagine that if they share the generator instance then a change in the order of the tests might produce this sort of flakiness.
The text was updated successfully, but these errors were encountered: