pytest-mimesis icon indicating copy to clipboard operation
pytest-mimesis copied to clipboard

consider moving code into mimesis.pytest_plugin

Open graingert opened this issue 4 years ago • 0 comments

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:

  • https://docs.celeryproject.org/en/stable/userguide/testing.html#enabling
  • https://github.com/celery/pytest-celery/blob/master/pyproject.toml#L15-L16

graingert avatar May 06 '21 14:05 graingert