Safihre
73d3f7b5c2
Validate ionice and nice parameters
2020-06-21 16:20:00 +02:00
Safihre
4420c36889
Speed-up selenium tests by re-using open browser window
2020-06-18 14:18:11 +02:00
Safihre
6098eb6eac
Make the RSS-feed test more stable
2020-06-18 08:40:18 +02:00
Safihre
50b7c8a00c
Allow failure for unstable unicode-rar download
2020-06-18 08:40:09 +02:00
Safihre
48d18b3866
Replace test files with smaller files
...
Closes #1511
2020-06-17 22:33:21 +02:00
Safihre
c0627f342c
SABNews handle filenames fully in unicode
2020-06-17 22:33:21 +02:00
Safihre
92efc9ed8a
Improve automated download-testing
...
- Catch all Selenium exceptions while waiting for the download to complete
- Correctly set autodisconnect=0
- Make job-name even more unique
- Wait for the RSS-added job to finish fetching
- Move sabnzbd.basic.ini to data folder
- Use new SAB_DATA_DIR
- Optimized imports
2020-06-17 22:33:21 +02:00
Safihre
00a0d35020
Use sabnzbd.__version__ consistently
2020-06-17 21:49:02 +02:00
Safihre
7e5a43e95c
Revert "Code-formatting: optimize imports"
...
This reverts commit db5ff8c7e1 .
Does not work on Python 3.4/3.6. Not really sure why, but don't want to investigate right now.
2020-06-14 11:29:54 +02:00
Safihre
db5ff8c7e1
Code-formatting: optimize imports
2020-06-14 10:21:33 +02:00
Safihre
8ce6c26f9c
Do not scan incomplete directory recursively
...
Also renamed the recursive_listdir function so it can also be non-recursive. Which was very easy due to the extensive test-set by @jcfp!
Relates to #1304 (that NZB triggered invalid reading of sub-dirs in incomplete folder)
2020-06-13 21:36:48 +02:00
Safihre
18a96d3286
Make super-sure we have a random job-name in functional tests
...
Yes, it turned out the job names were not random enough!
https://travis-ci.com/github/sabnzbd/sabnzbd/jobs/348060280
Shows that there are 2 jobs named "testfile_973"
2020-06-12 17:30:18 +02:00
Safihre
3631138978
Small delay is needed when adding RSS job
...
It seems sometimes it doesn't right away detect the job in the queue because it is fetching the URL: https://travis-ci.com/github/sabnzbd/sabnzbd/jobs/347249629
2020-06-11 09:00:27 +02:00
Safihre
93c62c6827
The tests are just.. flaky
...
Marking them like this will cause them to be retried once if they fail. This also happens from time to time with the happyeyeballs test.
2020-06-10 13:21:30 +02:00
Safihre
593c6ec09c
Lower log-level in SABNews and keep SABnzbd connected for test stability
2020-06-10 11:49:39 +02:00
Safihre
8bb6ba2285
Windows: test only on recent Python version
2020-06-10 09:57:25 +02:00
Safihre
39e2254cd5
Add new sets to functional tests
2020-06-09 21:52:50 +02:00
Sander Jonkers
51f361f8d9
tests/data/unicode_rar: simplied chinese chars at two levels: rar and par2, and payload itself
2020-06-09 20:59:11 +02:00
Safihre
1f412fc1c6
Use new sabyenc3.encode function for massive speedup
2020-06-09 12:35:27 +02:00
Safihre
1150f1af71
Test higher number of connections
2020-06-09 12:35:27 +02:00
Safihre
d0510509a4
Compatibility of sabnews with Python 3.5
2020-06-09 12:35:27 +02:00
Safihre
d84444ae73
Convert tests to sabnews
2020-06-09 12:35:27 +02:00
Safihre
8ef7dee0b5
SABnews implementation
2020-06-09 12:35:27 +02:00
jcfp
75ddba076f
add unittests for urlgrabber._build_request ( #1495 )
...
* add unittests for urlgrabber._build_request
* add explicit check for absence of Authorization header
2020-06-08 21:36:14 +02:00
jcfp
e9b4340a25
extend filesystem tests ( #1481 )
...
* extend filesystem tests
* fix test failure when no explicit umask was set
* have black uglify the code
* require case-sensitive fs for test_capitalization_linux
* run black with -l120 instead
* make windows-compatible, fix some minor issues
* mark xfail rather than comment out part of trim_win_path
2020-06-03 15:57:52 +02:00
Safihre
75f5066941
Move black to the Python 3.8 job
2020-06-02 07:46:33 +02:00
Sander
d40cebd34d
pytest: postproc -> rar_renamer() ( #1469 )
...
* pytest: postproc -> rar_renamer()
* pytest: postproc -> rar_renamer(): remove trailing slash
* pytest: postproc -> rar_renamer(): remove trailing slash
* pytest: postproc -> rar_renamer(): check on matching filenames
* pytest: postproc -> rar_renamer(): appveyor Windows compatible, cleaner coding
* pytest: postproc -> rar_renamer(): appveyor Windows compatible, cleaner coding
* pytest: postproc -> rar_renamer(): try without minus
* pytest: postproc -> rar_renamer(): try with distutils.dir_util.copy_tree() instead of shutil.copytree()
* pytest: postproc -> rar_renamer(): formatting to make Travis happy
* pytest: postproc -> rar_renamer(): correct printing in pytest.fail()
2020-06-01 20:54:23 +02:00
Safihre
1cd6023600
Styles changes to is_sfv_file
2020-05-26 12:45:55 +02:00
Sander
f0ef984276
find and use obfuscated SFV files ( #1459 )
...
* isSFVfile(): Checks if given file is a SFV file, and returns result as boolean
* Obfuscated SFV files: find and use them
* Obfuscated SFV files: rename to is_sfv_file()
* is_sfv_file(): regexp based, minor stuff, pytest
* is_sfv_file(): pytest according to black
2020-05-26 10:52:58 +02:00
Safihre
51c9da73fe
Remove tapi and replace by api
2020-05-25 12:30:36 +02:00
Safihre
9d5f3b69bd
Always use Chrome and chromedriver from PPA
2020-05-22 10:54:06 +02:00
Safihre
e5c1a89492
Wrap Selenium functions with a retry-mechanism for stability
...
Super duper ugly. Blegh, Selenium.
2020-05-05 12:02:49 +02:00
Safihre
b38a3cc97c
Add extra command line parameter to improve Selenium stability
2020-05-05 11:14:53 +02:00
Safihre
adcb690662
Move apireg to utils directory
2020-05-05 11:14:53 +02:00
Safihre
233ab2ee6e
Restore Windows Service functionality
2020-05-05 11:14:53 +02:00
Safihre
6f2c60e092
Use contextmanager when opening files as much as possible
2020-05-01 00:15:20 +02:00
Safihre
6d8c264e90
Update copyright year to 2020
2020-04-25 16:30:38 +02:00
Safihre
9f777c12ce
Code-style corrections for recent commits
...
Closes #1401
2020-04-25 16:23:05 +02:00
Sander Jonkers
3d2e6904a5
Introduction of unittest for happyeyeballs()
2020-04-22 17:08:35 +02:00
Safihre
1a494cbf14
Move sleepless-test to the right directory
2020-02-26 11:27:38 +01:00
Safihre
5a7e1a1699
Use PyObjC instead of C-module to keep macOS awake
...
Super duper awesome if I may say so!
2020-02-25 21:04:30 +01:00
Safihre
97df88a5ad
Skip failing daemon test on MacOS
...
Trying to figure out what is going wrong, it just results in a hard kill of the Python process.
2020-01-29 21:47:28 +01:00
Safihre
bc8f3e527a
Add Python 3.8 to CI-tests
2019-11-22 15:09:30 +01:00
Safihre
33eccf3e5d
Correct the CI-tests
2019-09-20 15:28:36 +02:00
Safihre
7c3c17ff85
Py3: Add test for SFV-check functions
2019-09-20 14:26:35 +02:00
Safihre
3efd595fc6
Run CI-tests less verbose and only on Chrome
2019-08-17 21:58:32 +02:00
Saurav Kumar
7fcdad0e69
Added new tests for utils ( #1266 )
...
* Added util tests
* FIxed build failures
* Incorportaed review comments
Added new tests
* Test added for generate_key
* Updated module name
* Correct newly added tests
2019-04-22 12:06:26 +02:00
Safihre
6b3f8bd255
Py3: Remove error.log if it is too big
...
Including tests
2019-04-21 12:00:51 +02:00
Safihre
7034fb27a6
Py3: Fix HTML login
...
Closes #1246
2019-03-13 12:41:39 +01:00
Safihre
052762fd03
Py3: Re-organize forking/daemonizing for Python 3
...
And added basic tests that it can fork.
Closes #1237 and #1255
2019-03-13 11:56:40 +01:00