mirror of https://github.com/bmaltais/kohya_ss
|
|
||
|---|---|---|
| .. | ||
| library | ||
| README.md | ||
| manual_test_anima_cache.py | ||
| manual_test_anima_real_training.py | ||
| test_custom_offloading_utils.py | ||
| test_fine_tune.py | ||
| test_flux_train.py | ||
| test_flux_train_network.py | ||
| test_lumina_train_network.py | ||
| test_optimizer.py | ||
| test_sd3_train.py | ||
| test_sd3_train_network.py | ||
| test_sdxl_train.py | ||
| test_sdxl_train_network.py | ||
| test_train.py | ||
| test_train_network.py | ||
| test_train_textual_inversion.py | ||
| test_validation.py | ||
README.md
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
- https://docs.pytest.org/en/stable/index.html
- https://docs.pytest.org/en/stable/how-to/assert.html
- https://docs.pytest.org/en/stable/how-to/doctest.html