mimesis support
See original GitHub issueHi, I am one of the developers of mimesis
and a huge fan of your library.
I really want to provide a native integration of mimesis
and pytest-randomly
just like the one you have with faker
and factoryboy
. I really like that the reseed happens before each test, so the results are significantly better than the regular one time seed.
What needs to be done?
- From our side we have changed how
random
is used internally to expose globalrandom
instance: https://github.com/lk-geimfari/mimesis/pull/471/files#diff-02fe14a63fc506efde39da2f898b5e0fR127 so it would be easy to seed it - I can provide a PR with the same logic as you already use for
faker
and others, if that’s fine
Related: https://github.com/lk-geimfari/mimesis/issues/469 I would like to hear your opinion. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Mimesis: Fake Data Generator — Mimesis 6.0.0 documentation
Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.
Read more >Mimesis - Wikipedia
Mimesis is a term used in literary criticism and philosophy that carries a wide range of meanings, including imitatio, imitation, nonsensuous similarity, ...
Read more >lk-geimfari/mimesis - The Fake Data Generator
Python compatibility. Mimesis supports Python (also PyPy) 3.8^ or higher. The Mimesis 4.1.3 is the last to support Python 3.6 and 3.7.
Read more >Support
If you are interested in becoming a sponsor, please contact Eric Coombs Esmail, Director of the Center for Documentary and Ethnographic Media, at...
Read more >Mimesis Documentation
Mimesis is a high-performance fake data generator for Python, ... Mimesis support over twenty different data providers available, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lk-geimfari I just merged and released #187 which adds a package entrypoint that can be used for reseeding. Adding such an entrypoint to mimesis would be the way to go now!
Thanks, I hadn’t heard of mimesis before but it looks useful. Sounds like you’re ready to make the PR!
Add mimesis to requirements.in, recompile requirements.txt (on python 2.7), add the logic and a test, and a note in HISTORY.rst for the next release. Thanks!