Files
Kohya-ss-sd-scripts/tests
rockerBOO adb0e54093 Fix GGPO variables. Fix no _org lora values.
- Add pythonpath = . to pytest to get the current directory
- Fix device of LoRA after PiSSA initialization to return to proper
  device
2025-04-10 21:59:39 -04:00
..
2024-12-02 13:51:57 -05:00
2024-11-29 15:52:03 -05:00

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