pytest-dev / pytest-mimesis

Mimesis integration with the pytest test runner. This plugin provider useful fixtures based on providers from Mimesis.
https://pypi.org/project/pytest-mimesis/
MIT License
62 stars 4 forks source link

consider moving code into mimesis.pytest_plugin #81

Closed graingert closed 6 months ago

graingert commented 3 years ago

then this project can be a thin shim that just registers the entry point:

[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "pytest_mimesis"
dist-name = "pytest-mimesis"
author = "..."
author-email = "..."
home-page = "https://github.com/lk-geimfari/mimesis/tree/master/mimesis/pytest_plugin.py"
license = "..."
classifiers = ["..."]
requires = ["mimesis >= 4.2.0"]

[tool.flit.entrypoints.pytest11]
mimesis = "mimesis.pytest_plugin"

this is the approach used by pytest-celery:

lk-geimfari commented 7 months ago

I'm going to work on this issue this weekend. I think that this may be a good idea to support pytest out the box, instead of having separate package.

sobolevn commented 7 months ago

Please, feel free to ask for a review :)

lk-geimfari commented 7 months ago

I've add the module mimesis/plugins/pytest.py. Now we have to update this package, I guess.

lk-geimfari commented 7 months ago

@sobolevn If you have iecommendations where to start I would be really thankful.

sobolevn commented 7 months ago

You can just state that this package is deprecated. And that mimesis should be used instead.

lk-geimfari commented 6 months ago

Mimesis 14.0.0 is released. I'm closing this issue.