Answers for "pytest"

4

install pytest

pip install pytest
Posted by: Guest on July-24-2020
1

pytest

# content of test_sample.py
def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5
Posted by: Guest on June-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language