aboutsummaryrefslogtreecommitdiffstats
path: root/test_upscale_qt.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_upscale_qt.py')
-rw-r--r--test_upscale_qt.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test_upscale_qt.py b/test_upscale_qt.py
index 37e0484..7d7307c 100644
--- a/test_upscale_qt.py
+++ b/test_upscale_qt.py
@@ -60,6 +60,13 @@ def test_args():
'-i', '/in.png', '-o', '/out.png']
+def test_progress():
+ out = (b'[I] upscaling\n\r |====> | 1/4 - 1.09it/s\x1b[K'
+ b'\r |=======> | 2/4 - 3.89it/s\x1b[K')
+ assert uq.progress(out) == (2, 4)
+ assert uq.progress(b'[I] load model') is None
+
+
def test_save_over():
path = os.path.join(TMP, 'photo.JPG') # uppercase suffix on purpose
small = QImage(4, 4, QImage.Format.Format_RGB32)