Commit Graph

83 Commits

Author SHA1 Message Date
un-pogaz 8d28380515 add/remove blank-line (extra-edit)
ruff 'E302,E303,E304,E305,W391'
2025-01-24 11:14:21 +01:00
un-pogaz 047ebcffe4 convert some legacy percent format (manual)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
un-pogaz 0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
Kovid Goyal 3792654953 ... 2024-10-09 20:35:44 +05:30
Kovid Goyal 27041e4351 Move the DLL dir add to where it's actually needed 2024-10-09 20:27:31 +05:30
Kovid Goyal 53b74283a4 sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal 1d28aa1d6a Some debugging for hang in linux CI 2023-11-13 19:21:37 +05:30
Kovid Goyal 68b931d3d8 Allow running test_rs with libasan preloaded 2023-05-20 13:10:01 +05:30
Kovid Goyal c1e5dd0fbb Suppress the warning about cgi deprecation that is causing tests with warnings turned into errors to fail 2023-05-19 14:26:39 +05:30
Kovid Goyal 7ee339ab14 Try using DYLD_INSERT_LIBRARIES instead 2023-01-19 13:17:20 +05:30
Kovid Goyal 3998c2490c Sanitize env when running curl in test 2023-01-19 12:55:59 +05:30
Kovid Goyal 0bdde99372 See if forcibly loading the correct libxml2 dylib before running the tests fixes the lxml test failure on CI 2023-01-19 12:23:08 +05:30
Kovid Goyal 2c4891b26d Dont buffer test output when running a specific test 2022-07-06 19:19:46 +05:30
Kovid Goyal 51d2a08501 Allow running individual tests by name using calibre-debug
calibre-debug -c "from calibre.utils.run_tests import *; import sys; run_test(sys.argv[-1])" some_test_name
2022-07-04 19:14:48 +05:30
Kovid Goyal d1242fd29c ... 2022-03-31 11:27:29 +05:30
Kovid Goyal 09ce82c760 Allow usage of SHM from python 2022-03-21 18:15:14 +05:30
Kovid Goyal 24c460faec also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Eli Schwartz 4761866fa3 tests: fix exclusion of FreeBSD code
calibre.devices.usbms.hal was added as a FreeBSD backend, but the test
exclusion only tries importing it on Linux. It does import on Linux, but
what we actually care about is that it imports on FreeBSD.
2021-12-02 10:49:04 -05:00
Kovid Goyal 35f95c4ed8 Implement validation for html transform rules 2021-11-10 14:33:30 +05:30
Kovid Goyal 573693a052 Cleaner rexec logic 2021-10-04 21:12:51 +05:30
Kovid Goyal b8fce28cb7 oops 2021-10-04 20:58:08 +05:30
Kovid Goyal f577625504 ... 2021-10-04 14:51:15 +05:30
Kovid Goyal f027fac8a2 Use the new env var to disable RTLD_DEEPBIND for pycryptodome when running the tests with sanitization enabled 2021-10-04 14:39:42 +05:30
Kovid Goyal 4dc0502a29 Fix failing tests 2021-06-27 20:13:57 +05:30
Kovid Goyal efdf661457 Remove DBUS based global menu and system tray code
This was mainly present to support GNOME and GNOME has decided to ditch
system trays and global menus. Since the python-dbus package this code
uses is not maintained, ditch it entirely.
2021-06-24 10:55:12 +05:30
Kovid Goyal 009e82c9df Turn on deprecation warnings in CI 2021-06-24 10:20:19 +05:30
Kovid Goyal 53168e075e Alias for test name option 2021-06-19 14:59:48 +05:30
Kovid Goyal 3dd9598139 Remove ASAN patch for bug in arch Qt. Thanks @eli-schwartz 2021-04-14 10:47:53 +05:30
Kovid Goyal 51983180dd Fix ASAN failure on Arch because they switched to some random patchset on top of base Qt 2021-04-08 13:16:55 +05:30
Kovid Goyal 5ce36cc3e6 Option to run tests under sanitizer 2021-03-22 09:35:17 +05:30
Kovid Goyal f92439fe6b Move tests into separate module
Avoids parsing the test code on every import of a very central module
2021-01-21 05:54:51 +05:30
Joseph R. Fox-Rabinovitz efe490b1b7 Added unit tests for author sort function 2021-01-15 12:47:44 -05:00
Kovid Goyal d8e7a58646 Start work on unified framework for live code loading 2020-12-18 18:20:37 +05:30
Kovid Goyal e430bf3312 PDF Output: Yet another attempt at working around chromium's broken TTF embedding. Fixes #1907849 [conversion to pdf results in bizarre kerning](https://bugs.launchpad.net/calibre/+bug/1907849)
This has the advantage of making the merging code a lot simpler as well.
2020-12-12 13:41:48 +05:30
Kovid Goyal d6887a1bfd Exclude winsapi from import all tests on non-windows 2020-10-22 13:47:48 +05:30
Kovid Goyal da5964ec07 Run the SAPI tests in CI 2020-10-22 13:37:37 +05:30
Kovid Goyal 13552bef07 isosx -> ismacos 2020-09-09 14:51:09 +05:30
Kovid Goyal 5075fc2d36 Keep annotations sorted in CFI order when merging 2020-08-22 18:48:11 +05:30
Kovid Goyal e7e78da5c1 Fix devendoring meta path magic on py3 2020-08-22 18:48:03 +05:30
Kovid Goyal 01b0fba8ad Auto fix excess blank lines 2020-08-22 18:47:56 +05:30
Kovid Goyal 9ff27782de Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal 29cd8d64ea Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal 6c9c141c3e Add a command to easily run rapydscript tests 2020-04-02 16:34:07 +05:30
Aimylios 5c795352c9 Allow excluding individual tests from test run 2020-01-17 21:54:25 +01:00
Kovid Goyal 231664e7ca Move test location 2020-01-08 22:25:38 +05:30
Kovid Goyal f0e6ead4c7 Better workaround for XXE in lxml
Instead of disabling resolution of all entities, only disable resolution
of entities from files
2020-01-08 22:03:38 +05:30
Kovid Goyal b16b5535bf Implement mapping of locales to dictionary names 2019-12-01 10:50:32 +05:30
Kovid Goyal d304e08ec1 Code to merge W arrays 2019-09-13 09:12:24 +05:30
Kovid Goyal 7803f3de36 Rename viewer2 to viewer 2019-09-13 09:12:20 +05:30
Kovid Goyal 59b9357c0c Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30