testing-conventions 0.0.133

Enforce testing conventions in libraries (Python, TypeScript, and Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import a_thing

from widget import widget_fn


def test_widget():
    assert widget_fn(1) == "positive"
    assert widget_fn(-1) == "non-positive"


def test_a_thing_partially():
    assert a_thing.classify(1) == "positive"