Skip to content

Instantly share code, notes, and snippets.

@floer32
Last active September 21, 2019 21:12
Show Gist options
  • Save floer32/e9e80e7056acc8fa9840df4b9d584da1 to your computer and use it in GitHub Desktop.
Save floer32/e9e80e7056acc8fa9840df4b9d584da1 to your computer and use it in GitHub Desktop.
simple HOWTO docstring to paste at top of test packages/modules, i.e. on teams less familiar with pytest
""" Tests for `foo` package.
uses pytest. pytest resources:
* Docs: https://docs.pytest.org/en/latest/
* Book! https://pragprog.com/book/bopytest/python-testing-with-pytest
also uses `responses`, for mocking HTTP exchanges with `requests` library:
* https://github.com/getsentry/responses
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment