mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 06:54:17 +00:00
Add tests for syntax checking training scripts
This commit is contained in:
6
tests/test_fine_tune.py
Normal file
6
tests/test_fine_tune.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import fine_tune
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
6
tests/test_flux_train.py
Normal file
6
tests/test_flux_train.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import flux_train
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
5
tests/test_flux_train_network.py
Normal file
5
tests/test_flux_train_network.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import flux_train_network
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the flux_train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
6
tests/test_sd3_train.py
Normal file
6
tests/test_sd3_train.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import sd3_train
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
5
tests/test_sd3_train_network.py
Normal file
5
tests/test_sd3_train_network.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import sd3_train_network
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the flux_train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
6
tests/test_sdxl_train.py
Normal file
6
tests/test_sdxl_train.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import sdxl_train
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
6
tests/test_sdxl_train_network.py
Normal file
6
tests/test_sdxl_train_network.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import sdxl_train_network
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
6
tests/test_train.py
Normal file
6
tests/test_train.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import train_db
|
||||||
|
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
5
tests/test_train_network.py
Normal file
5
tests/test_train_network.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import train_network
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
5
tests/test_train_textual_inversion.py
Normal file
5
tests/test_train_textual_inversion.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import train_textual_inversion
|
||||||
|
|
||||||
|
def test_syntax():
|
||||||
|
# Very simply testing that the train_network imports without syntax errors
|
||||||
|
assert True
|
||||||
Reference in New Issue
Block a user