Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Add a skeleton of the pytest plugin #49

Merged
merged 13 commits into from
Apr 4, 2024
Merged

Add a skeleton of the pytest plugin #49

merged 13 commits into from
Apr 4, 2024

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Mar 28, 2024

@nedtwigg
Copy link
Member Author

Currently broken because there are no tests.

@nedtwigg
Copy link
Member Author

nedtwigg commented Apr 2, 2024

From this list it looks like we should name the project pytest-selfie to follow the naming convention.

@nedtwigg
Copy link
Member Author

nedtwigg commented Apr 2, 2024

How I did this (roughly):

In the end we have:

  • pytest-selfie/pytest_selfie/plugin.py
    • pytest_sessionstart - called before all tests
    • pytest_sessionfinish - called after all tests
    • pytest_pyfunc_call - called before test, yield, after the test
  • example-pytest-selfie - playground where we can use pytest-selfie like an end user

@nedtwigg nedtwigg marked this pull request as ready for review April 2, 2024 21:21
@nedtwigg nedtwigg merged commit 635f1df into main Apr 4, 2024
2 checks passed
@nedtwigg nedtwigg deleted the feat/pytest-skeleton branch April 4, 2024 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant