Thank you for the article. I wasn't aware of mimesis which seems to be faster than faker.
But even if it is not the first time I heard about snapshot testing, I'm not sure why I need it in my project. Do you know another article explaining the concept? ^^
Snatshot testing is just convenience. Like code completion. Nothing more.
As for time-machine, indeed, it is faster, but it also work at the C-implementation level, which means the errors you might get are harder to debug. Since speed is rarely the problem for most people, I focus on the easier solution.
But of course, if one has the need for speed, it's a good alternative.
Thank you for the article. I wasn't aware of mimesis which seems to be faster than faker.
But even if it is not the first time I heard about snapshot testing, I'm not sure why I need it in my project. Do you know another article explaining the concept? ^^
By the way, instead of freezegun, you can also use time-machine (https://github.com/adamchainz/time-machine) which is faster :)
Snatshot testing is just convenience. Like code completion. Nothing more.
As for time-machine, indeed, it is faster, but it also work at the C-implementation level, which means the errors you might get are harder to debug. Since speed is rarely the problem for most people, I focus on the easier solution.
But of course, if one has the need for speed, it's a good alternative.
I didn't know about `pyfakefs` (will use it, since `tempfile` is quite slow in my case) and `inline-snapshot` is really interesting.