Kohya_ss_2 / sd-scripts /tests /README.md
ChBysk's picture
Upload folder using huggingface_hub (part 2)
622d48e verified
|
Raw
History Blame Contribute Delete
881 Bytes

A newer version of the Gradio SDK is available: 6.24.0

Upgrade

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