pytest-sugar
pytest-describe
pytest-sugar | pytest-describe | |
---|---|---|
2 | 1 | |
1,250 | 202 | |
- | 0.5% | |
6.9 | 5.0 | |
3 months ago | 3 months ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pytest-sugar
-
What if writing tests was a joyful experience?
Same here. I get lovely little dopamine hits from passing tests, enhanced by pytest-sugar [1] giving everything a little green check mark.
[1] https://github.com/Teemu/pytest-sugar
- That moment when you have been spoiled with great tools and standards for 6 years and then get thrown into the pits of "I don't see what's wrong with this"
pytest-describe
-
My Python testing style guide – Stargirl (Thea) Flowers
I've found pytest to encourage tests with really long method names, examples from the post:
* test_refresh_failure
* test_refresh_with_timeout
These get even longer like test_refresh_with_timeout_when_username_is_not_found for example.
pytest-describe allows for a much nicer testing syntax. There's a great comparison here: https://github.com/pytest-dev/pytest-describe#why-bother
TL;DR, this is nicer:
def describe_my_function():
def with_default_arguments():
What are some alternatives?
nbval - A py.test plugin to validate Jupyter notebooks
pytest-clarity - A plugin to improve the output of pytest with colourful unified diffs
pytest_httpx - pytest fixture to mock HTTPX
pytest-insta - A practical snapshot testing plugin for pytest.
expecttest
pudb - Full-screen console debugger for Python
pytest-langchain - ✅ Pytest-style test runner for langchain projects
tavern - A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
assert_value_elixir - ExUnit's assert on steroids that writes and updates tests for you
kubetest - Kubernetes integration testing in Python via pytest
pytest-local - Simple forking server for testing with reusable context.
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing