-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reseeding doesn't return consistent data for some providers #1313
Comments
This is probably a bug. I'll fix this. Thank you for report! |
This problem requires quite a serious overhaul of some providers. This is because some providers under the hood use other providers (for example Internet) and when the ".reseed()" method is called it reseeding only the original provider. |
@sobolevn I apologize for the inconvenience, but do you have any eligant solution for this? |
I just tested this the latest master and the issue is no longer there.
Closing issue. Thank you for looking into this |
I fixed the issue only for File, but the bug itself is still there, so I'll reopen this issue. |
This patch will iterate over the subproviders on a provider and reseed them. Otherwise providers that rely on other providers to generate data will not return consistent data when reseeded with the same value. Fix lk-geimfari#1313
This patch will iterate over the subproviders on a provider and reseed them. Otherwise providers that rely on other providers to generate data will not return consistent data when reseeded with the same value. Fix lk-geimfari#1313
This patch will iterate over the subproviders on a provider and reseed them. Otherwise providers that rely on other providers to generate data will not return consistent data when reseeded with the same value. Fix lk-geimfari#1313
Hi, I tentatively submitted a PR that reseeds all related providers on the BaseProvider. |
I've fixed this bug. Thank you, @Svenito. |
Bug report
What's wrong
generic.file.file_name()
does not provide the same data when reseeding the provider.How is that should be
When reseeding the values returned should be the same.
It seems that the extension remains the same on each reseed but the filename differs each time.
Not all providers have this issue. So far I've only noticed this happening with
file.file_name
System information
mimesis 7.0.0
python 3.9.9
windows 11
The text was updated successfully, but these errors were encountered: