onnx / tests /README.md
trixlyaisolutions's picture
Upload folder using huggingface_hub (part 2)
e0cba20 verified
|
Raw History Blame Contribute Delete
881 Bytes

Tests

Install

pip install pytest

Usage

pytest

Contribution

Pytest is configured to run tests in this directory. It might be a good idea to add tests closer in the code, as well as doctests.

Tests are functions starting with test_ and files with the pattern test_*.py.

def test_x():
    assert 1 == 2, "Invalid test response"

Resources

pytest

PyTorch testing