Safihre
73d3f7b5c2
Validate ionice and nice parameters
5 years ago
Safihre
4420c36889
Speed-up selenium tests by re-using open browser window
5 years ago
Safihre
6098eb6eac
Make the RSS-feed test more stable
5 years ago
Safihre
50b7c8a00c
Allow failure for unstable unicode-rar download
5 years ago
Safihre
48d18b3866
Replace test files with smaller files
Closes #1511
5 years ago
Safihre
c0627f342c
SABNews handle filenames fully in unicode
5 years ago
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
5 years ago
Safihre
00a0d35020
Use sabnzbd.__version__ consistently
5 years ago
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.
5 years ago
Safihre
db5ff8c7e1
Code-formatting: optimize imports
5 years ago
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)
5 years ago
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"
5 years ago
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
5 years ago
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.
5 years ago
Safihre
593c6ec09c
Lower log-level in SABNews and keep SABnzbd connected for test stability
5 years ago
Safihre
8bb6ba2285
Windows: test only on recent Python version
5 years ago
Safihre
39e2254cd5
Add new sets to functional tests
5 years ago
Sander Jonkers
51f361f8d9
tests/data/unicode_rar: simplied chinese chars at two levels: rar and par2, and payload itself
5 years ago
Safihre
1f412fc1c6
Use new sabyenc3.encode function for massive speedup
5 years ago
Safihre
1150f1af71
Test higher number of connections
5 years ago
Safihre
d0510509a4
Compatibility of sabnews with Python 3.5
5 years ago
Safihre
d84444ae73
Convert tests to sabnews
5 years ago
Safihre
8ef7dee0b5
SABnews implementation
5 years ago
jcfp
75ddba076f
add unittests for urlgrabber._build_request ( #1495 )
* add unittests for urlgrabber._build_request
* add explicit check for absence of Authorization header
5 years ago
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
5 years ago
Safihre
75f5066941
Move black to the Python 3.8 job
5 years ago
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()
5 years ago
Safihre
1cd6023600
Styles changes to is_sfv_file
5 years ago
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
5 years ago
Safihre
51c9da73fe
Remove tapi and replace by api
5 years ago
Safihre
9d5f3b69bd
Always use Chrome and chromedriver from PPA
5 years ago
Safihre
e5c1a89492
Wrap Selenium functions with a retry-mechanism for stability
Super duper ugly. Blegh, Selenium.
5 years ago
Safihre
b38a3cc97c
Add extra command line parameter to improve Selenium stability
5 years ago
Safihre
adcb690662
Move apireg to utils directory
5 years ago
Safihre
233ab2ee6e
Restore Windows Service functionality
5 years ago
Safihre
6f2c60e092
Use contextmanager when opening files as much as possible
5 years ago
Safihre
6d8c264e90
Update copyright year to 2020
5 years ago
Safihre
9f777c12ce
Code-style corrections for recent commits
Closes #1401
5 years ago
Sander Jonkers
3d2e6904a5
Introduction of unittest for happyeyeballs()
5 years ago
Safihre
1a494cbf14
Move sleepless-test to the right directory
5 years ago
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.
5 years ago
Safihre
bc8f3e527a
Add Python 3.8 to CI-tests
6 years ago
Safihre
33eccf3e5d
Correct the CI-tests
6 years ago
Safihre
7c3c17ff85
Py3: Add test for SFV-check functions
6 years ago
Safihre
3efd595fc6
Run CI-tests less verbose and only on Chrome
6 years ago
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
6 years ago
Safihre
6b3f8bd255
Py3: Remove error.log if it is too big
Including tests
6 years ago
Safihre
7034fb27a6
Py3: Fix HTML login
Closes #1246
6 years ago
Safihre
052762fd03
Py3: Re-organize forking/daemonizing for Python 3
And added basic tests that it can fork.
Closes #1237 and #1255
6 years ago
Safihre
a9185b4aee
Py3: Add pygettext to repo and basic test of POT extraction
Python is deprecating pygettext.py so we better have our own, just like msgfmt.py
6 years ago