aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorBrianna Rainey2026-01-29 14:50:29 -0500
committerGitHub2026-01-29 14:50:29 -0500
commit71a22c6a121d1294a05ef35020c525fa70cae2fd (patch)
tree025dd2329c214a5fe5ac78c7f2e8342e2bfde14d /tests/data
parentf66eb99465c61232a7f649e66bee59504bb0e52c (diff)
v2.2.2 - fix flaky tests, fix UnboundLocalError in MainWindow.createNewProject (#94)
* search more than one filename for compName * remove extra QVBoxLayout * insert default components using name instead of index * bump version 2.2.1 to 2.2.2 * tests do not use `.config` for settings Core.storeSettings() is no longer called as a side effect any time avp.core is imported. Thus the tests use a new `initCore` method and the normal user path now relies on entering via `cli.py`. This means certain toolkit functions (e.g., ones using `FFMPEG_BIN`) no longer work if imported from a different python script, unless they call Core.storeSettings() themselves to initialize the settings.ini file * fix UnboundLocalError in createNewProject
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/inputfiles/test.jpg (renamed from tests/data/test.jpg)bin48766 -> 48766 bytes
-rw-r--r--tests/data/inputfiles/test.ogg (renamed from tests/data/test.ogg)bin30043 -> 30043 bytes
-rw-r--r--tests/data/inputfiles/test.png (renamed from tests/data/test.png)bin220 -> 220 bytes
-rw-r--r--tests/data/projects/testproject.avp17
4 files changed, 17 insertions, 0 deletions
diff --git a/tests/data/test.jpg b/tests/data/inputfiles/test.jpg
index 86266d9..86266d9 100644
--- a/tests/data/test.jpg
+++ b/tests/data/inputfiles/test.jpg
Binary files differ
diff --git a/tests/data/test.ogg b/tests/data/inputfiles/test.ogg
index 46af76c..46af76c 100644
--- a/tests/data/test.ogg
+++ b/tests/data/inputfiles/test.ogg
Binary files differ
diff --git a/tests/data/test.png b/tests/data/inputfiles/test.png
index f1ffd4a..f1ffd4a 100644
--- a/tests/data/test.png
+++ b/tests/data/inputfiles/test.png
Binary files differ
diff --git a/tests/data/projects/testproject.avp b/tests/data/projects/testproject.avp
new file mode 100644
index 0000000..fd6b6eb
--- /dev/null
+++ b/tests/data/projects/testproject.avp
@@ -0,0 +1,17 @@
+[Components]
+Classic Visualizer
+1
+OrderedDict({'bars': 63, 'layout': 0, 'preset': None, 'scale': 20, 'smooth': 0, 'visColor': (255, 255, 255), 'y': 0.0})
+Color
+1
+OrderedDict({'LG_end': 0.0, 'LG_start': 0.0, 'RG_centre': 0.0015625, 'RG_end': 0.0, 'RG_start': 0.0, 'color1': (0, 0, 0), 'color2': (133, 133, 133), 'fillType': 0, 'height': 1.0, 'preset': None, 'spread': 0, 'stretch': False, 'trans': False, 'width': 1.0, 'x': 0.0, 'y': 0.0})
+
+[Settings]
+componentDir=tests/data/inputfiles
+inputDir=tests/data/inputfiles
+presetDir=tests/data/presets
+projectDir=tests/data/projects
+
+[WindowFields]
+lineEdit_audioFile=tests/data/test.ogg
+lineEdit_outputFile=