Hacker GitHub

← All repos

pytest-dev/pytest

View on GitHub ↗ ★ 14,661 Python

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

9 mentions on Hacker News by 9 people: 1 story, 8 comments · first 2015-06-16 · latest 2025-02-04

Mentions per year 9 mentions · busiest year 2020 (3)
20082026
  1. …like the way pytest rewrites assert a==[1,2,3] to print a nice error message with both variables https://github.com/pytest-dev/pytest/blob/main/src/_pytest/a...
  2. …rewriting the AST. (E.g. see how PyTest rewrites the assertion AST to produce nice error messages: https://github.com/pytest-dev/pytest/blob/main/src/_pytest/a... )
    comment by albertzeyer · 2024-12-18 · in Python Meta Circular Interpreter (2019)
  3. …========== short test summary info ========== FAILED test/test_dumb.py::test - assert 2 > 3 1: https://github.com/pytest-dev/pytest/blob/f373974707f57a0b28...
  4. …factory. There's a long issue on ideas to implement something like that as a pytest plugin ( https://github.com/pytest-dev/pytest/issues/3834 ), but it seems the resulting plugin relies on something of a hack.
    comment by eirki · 2023-03-22 · in Pytest Tips and Tricks
  5. …Pytest using it to rewrite modules so that functions like assert etc. are instrumented by pytest: https://github.com/pytest-dev/pytest/blob/eca93db05b6c5ec101... Here's the decorator module using it (as is the only way to do this in…
  6. …marked with the attribute "__test__" (which is applied by the @nose.tools.istest decorator). See https://github.com/pytest-dev/pytest/blob/d69abff2c7de8bc65b... This mechanism of scanning the AST is a different approach and won't find the…
    comment by vii · 2020-08-20 · in Analyzing Python Code with Python
  7. Sorry for not being clear. This is what I was talking about: https://github.com/pytest-dev/pytest/issues/916 It is a known issue. Basically your fixture/setup/teardown, which you expect should run for every example generated by Hypothesis,…
  8. I feel very uncomfortable whenever I read a code-of-conduct, including the PyTest one: https://github.com/pytest-dev/pytest/blob/master/CODE_OF_CON... I don’t think there’s anything wrong at all with the spirit of such documents, but they…
    comment by gorgoiler · 2020-04-11 · in Contributors Leaving Pytest
  9. ▲ 2
    Pytest is on GitHub
    story by Walkman · 2015-06-16 · 0 comments