Commit Graph

116 Commits

Author SHA1 Message Date
Nico Miguelino
dff1d26955 Adopt a singleton pattern for the media player instance (#2039)
* chore: adopt a singleton pattern for the media player instance
* chore: remove file-level/module-level mocks in tests
2024-08-28 07:16:26 -07:00
Nico Miguelino
f935b95115 Enables Flake8 E501 (#2019) 2024-08-13 15:48:33 -07:00
Nico Miguelino
5474ff9143 Adds error-handling when getting IP addresses from within the settings page (#2014) 2024-08-08 06:53:26 -07:00
Nico Miguelino
56fad54d96 Modifies audio output based on app settings and Pi version (#2002)
* fix: modify audio output based on app settings and pi version
* chore: refactore code for audio output
* tests: fix failing unit tests
2024-07-31 17:27:32 -07:00
Nico Miguelino
99a38d69ee Upgrade containers to use Bookworm (#1980)
* upgrade containers from using Buster to Bookworm
* replace OMX with VLC
* update the Qt version, webview hash, and the webview download URL
* enable FKMS for Raspberry Pi 1, 2, 3 and 4 devices
2024-07-22 14:26:01 -07:00
Nico Miguelino
9bc1bd30f0 Renames Screenly references to Anthias (#1946) 2024-07-03 11:00:58 -07:00
Nico Miguelino
6caf5aab73 chore: clean up unusued wifi-reset code (#1948) 2024-06-29 09:56:54 -07:00
Nico Miguelino
87e2d493ce Adds Python linting in CI (#1939) 2024-06-21 09:11:14 -07:00
Nico Miguelino
0fd729b019 Refactor all Celery tasks to a separate file (#1938) 2024-06-20 12:40:27 -07:00
nicomiguelino
5a82c77cf7 chore: cleanup code related to USB assets 2024-06-18 15:49:13 -07:00
nicomiguelino
7989920995 chore: clean up unused images 2024-06-17 15:23:37 -07:00
nicomiguelino
618be07f99 Write unit test cases for generating and recovering backup files. 2023-04-12 17:39:58 -07:00
nicomiguelino
466ddfaa56 Write a unit test for create_backup. 🧪 2023-04-12 10:26:21 -07:00
nicomiguelino
bf938cc669 Skip an update test case.
- Updates-related test cases seems to be very unstable.
2023-03-01 08:45:32 -08:00
nicomiguelino
ffb6cb0c82 Fix unicode/byte issue in viewer unit tests. 2023-02-24 11:18:03 -08:00
nicomiguelino
00d122314a Fix affected unit tests. 2023-02-22 11:39:45 -08:00
nicomiguelino
3e92a16cc6 Temporarily skip selected tests in CI. 2023-02-21 20:08:33 -08:00
nicomiguelino
79534040f6 Fix some failing unit test cases. Enforce unicode strings. 2023-02-21 15:02:54 -08:00
nicomiguelino
3d1e64a0f9 Apply Stage 2 changes to .py files using futurize
- Changes are not yet tested thoroughly.
2023-02-16 22:26:31 -08:00
nicomiguelino
c8869fa9f8 Apply Stage 1 changes to .py files using futurize. 2023-02-16 22:08:56 -08:00
nicomiguelino
cb85eb11f4 Skip an unstable test case. 2023-02-08 12:29:13 -08:00
nicomiguelino
ec14be1512 Make use of side effects when mocking. 2023-01-16 18:26:21 -08:00
nicomiguelino
edca303a1d Fix the test case by introducing new mock objects/functions. 2023-01-16 18:08:58 -08:00
Nico Miguelino
0a0b17c74d Merge branch 'Screenly:master' into 1626-fix-tests 2023-01-16 09:53:00 -08:00
nicomiguelino
20dc5e7d63 Remove unnecessary function definitions. 2023-01-13 11:16:34 -08:00
nicomiguelino
b92bfd4572 Clean up outdated test cases. 2023-01-13 11:05:07 -08:00
nicomiguelino
676f5f0081 "Uncomment" another test case from test_updates.py. 2023-01-13 10:35:11 -08:00
nicomiguelino
de0d3dfb26 "Uncomment" a test case from updates_test.py. 2023-01-12 10:19:29 -08:00
Nico Miguelino
c2fafc79ee Merge branch 'Screenly:master' into 1626-fix-tests 2023-01-12 09:42:39 -08:00
Emyll Almonte
3f75b06ef9 Update settings_test.py 2022-11-23 08:53:58 -05:00
Emyll Almonte
e5e32e6229 Update settings_test.py 2022-11-22 23:11:47 -05:00
Emyll Almonte
4464257669 Update settings_test.py 2022-11-22 16:14:21 -05:00
Nico Miguelino
f062317898 Merge branch 'Screenly:master' into 1626-fix-tests 2022-11-16 17:20:06 -08:00
nicomiguelino
77a36de2d4 Skip the test_add_asset_streaming test case. 2022-10-20 08:02:19 -07:00
nicomiguelino
79b429dd23 Attempt to fix CI and SonarCloud issues. 2022-10-17 11:35:31 -07:00
nicomiguelino
35d093fa16 Restore test case for streaming assets. 2022-10-16 11:43:05 -07:00
nicomiguelino
697ce283cf Restore two more Splinter test cases. 2022-10-13 22:21:03 -07:00
nicomiguelino
9c2960ef6b Bring back more test cases. 2022-10-13 13:45:52 -07:00
nicomiguelino
42e6f1d450 Restore two browser-related test cases. 2022-10-12 13:42:25 -07:00
nicomiguelino
667bc899bf Remove tests that uses a non-existing Celery task (upgrade_screenly). 2022-10-11 08:21:16 -07:00
nicomiguelino
d3ecafd151 Resolve code smells (duplicate code). 2022-10-10 21:47:28 -07:00
nicomiguelino
1eade1a8c6 Make two cleanup tests idempotent. 2022-10-10 21:31:55 -07:00
nicomiguelino
ded2bdff13 Bring back two more test cases. 2022-10-10 16:15:18 -07:00
nicomiguelino
d4870c6bf0 Bring back two test cases from celery_tasks_test.py. 2022-10-10 11:43:42 -07:00
nicomiguelino
2e66381faa Remove fixme attribute for test_cleanup. 2022-10-06 15:21:24 -07:00
nicomiguelino
361dca9cfc Fix and refactor TestCleanup.test_cleanup. 2022-10-06 15:15:23 -07:00
nicomiguelino
ce1ac6a661 Make initial attempts to fix failing viewer tests. 2022-10-06 09:51:47 -07:00
Nico Miguelino
83afe40ff1 Bring back test suite runs on GitHub actions (#1616)
- Add a new GitHub workflow for running unit tests.
- Modify existing workflow for building images, so that it will only run if no tests are failing.
- "Comment out" (skip) failing Python unit tests in the meantime. Will be addressed in future PRs.
2022-10-06 00:12:44 +08:00
Rusko124
dd114aec3c Changes: viewer_test 2019-10-09 10:35:15 +06:00
Rusko124
661ba0cbba Merge branch 'master' into celery_prepare_to_master 2019-09-11 10:56:34 +06:00