Commit Graph

25 Commits

Author SHA1 Message Date
Laurent Monin
d7bb9dc0a2 Drop remaining bits of QtCore.QObject.config and QtCore.QObject.log 2024-04-24 07:01:45 +02:00
Philipp Wolfer
3b6b90d6a6 Fix unit tests after removal of QObject.tagger 2024-04-22 17:59:57 +02:00
Philipp Wolfer
2fc0a54c06 Add tests for collection.load_user_collections 2024-04-06 13:17:41 +02:00
Philipp Wolfer
345b2cb768 Added tests for collection module 2024-04-06 13:17:41 +02:00
Philipp Wolfer
7d55ae5e5d PICARD-2331: Upgrade to PyQt6 2023-10-13 07:10:06 +02:00
Laurent Monin
be393f60af Default to C locale for all tests
It ensures tests aren't locale-dependent.
2023-06-11 16:56:37 +02:00
Philipp Wolfer
c5445cf2e2 PICARD-2609: Run file.update on priority_thread_pool 2023-01-12 19:29:15 +01:00
Philipp Wolfer
c513e71cf0 Implement a FakeThreadPool for testing
This runs the specified task directly instead of doing actual threading.
2023-01-12 19:29:15 +01:00
Laurent Monin
2f6479747d Update headers 2022-02-07 09:41:57 +01:00
Philipp Wolfer
0983c9531d Set log level in tests to DEBUG
This allows pytest to capture the log output and display it in context of the test.d
2022-01-19 08:11:33 +01:00
Laurent Monin
14ce07756e Update Copyright headers, with the help of fix-headers.py script 2021-11-10 21:38:54 +01:00
Bob Swift
2ea04a49cb Move profiles to config.profiles. Need to resolve failing tests. 2021-06-24 21:20:48 -06:00
Philipp Wolfer
fe5970f25a PICARD-2226: Removed config object per thread again
Syncing between those instances does not work as advertised, which causes missing updates on config changes.
2021-06-05 00:31:13 +02:00
Philipp Wolfer
0d01615498 PICARD-2089: Support WebP for cover art images 2021-01-02 12:18:40 +01:00
Philipp Wolfer
c0e6243a13 PICARD-1926: Adjust test cases for new config structure 2020-12-25 12:37:15 +01:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Laurent Monin
0631e5ff28 Move copy_file_tmp() and remove_file_tmp() to PicardTestCase
It helps to reduce code redundancy.
2020-02-08 18:04:39 +01:00
Laurent Monin
498c8eab1b Add mktmpdir method to PicardTestCase, and use it more widely 2020-02-08 18:04:39 +01:00
Philipp Wolfer
4f684d0a48 PICARD-1678: Fix Picard crashing on non-integer search scores
If the search scores returned by the server are not integer values Picard crashed during metadata comparisson.
2019-11-29 17:00:59 +01:00
Philipp Wolfer
1f19ee4b94 Increased test coverage of format tests 2019-09-07 17:46:23 +02:00
Philipp Wolfer
63cb114080 Always run tagger.run_cleanup for PicardTestCase 2019-03-29 08:59:14 +00:00
Philipp Wolfer
ecf8ad565a PICARD-1178: Support comparing cover images with only one type
All our current tags support either no or only one type.
Fixes issues where files where shown as modified when loading again and comparing against cover art with more than one type.
2019-02-22 11:05:08 +01:00
Wieland Hoffmann
e624aa121c Make PicardTestCase the parent class of all tests
This brings the faketagger and, more importantly, settings reset to all of them.
2018-10-23 17:32:50 +02:00
Wieland Hoffmann
eebe00a455 PicardTestCase: Reset config.setting in setUp
This helps finding tests that don't explicitly specify all settings they need.
2018-10-23 17:32:50 +02:00
Wieland Hoffmann
f01f9299a9 Extract setting up a FakeTagger into a PicardTestCase class 2018-10-23 17:32:50 +02:00