question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, 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?

  1. From our side we have changed how random is used internally to expose global random instance: https://github.com/lk-geimfari/mimesis/pull/471/files#diff-02fe14a63fc506efde39da2f898b5e0fR127 so it would be easy to seed it
  2. 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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adamchainzcommented, Aug 25, 2019

@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!

1reaction
adamchainzcommented, Jun 17, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found