* verify input values for scripts
* update and parametrise test_api_queue_change_job_script
* fortify cfg with script validation, fix test
* add typing to is_valid_script function :)
* move list_scripts function to filesystem
* also move windows-specific pathext stuff
* Save all interface values if useGlobalOptions is true
* Try to fix the tests
* New test test
* Another test test
* Remove default value for interface_settings
* urlgrabber limit filename to avoid tracebacks
* urlgrabber limit filename to avoid tracebacks: black
* urlgrabber limit filename to avoid tracebacks: black
* filename_limit ... 2020-01-15
* filename_limit: into sanitize_filename()
* filename_limit: black and typo and logging
* filename_limit: debug show full filename
* filename_limit: unittests
* sanitize_filename(): take care of feedback: one ASCII method, handly silly extension lengths
* sanitize_filename(): tests/test_filesystem.py ... make black happy
* sanitize_filename(): typo in comment
* sanitize_filename(): test_filesystem.py ... black
* sanitize_filename(): more unittests, and DEF_FILE_MAX (yet without GUI option)
* sanitize_filename(): always use DEF_FILE_MAX
* sanitize_filename(): black
* sanitize_filename(): handle UTF8 correct (>1 byte). DEF_FILE_MAX = 255
* sanitize_filename: measure bytes (not chars), DEF_FILE_MAX = 255 - 6, no test-writing in unittests
* sanitize_filename: constants.py ... black
* sanitize_filename: comment about extension
* DEF_FILE_MAX = 255 - 10 again, to solve adding ".nzb.gz" elsewhere
* add select by nzo_id to history api
* add select by nzo_id to queue api
* add tests for selecting by nzo_ids
* Do not run codesign step on pull requests
Co-authored-by: Safihre <safihre@sabnzbd.org>
* diskspeed: follow pylint's advice, and more pytesting
* diskspeed: improved hint, catch relevant exceptions
* diskspeed: lower tun time to 0.5 s (as we run it twice)
* diskspeed: make black and pylint happier
* Delete somefile.txt
* fix deprecation warning in sabnews regex
* enable text, xml returns from get_api_result
* add api tests
* add functional api tests
* add tavern.yaml files to test data
* explicitly add lxml to work around pip dependency issues
* prevent pytest from picking up the tavern files
* Revert "fix deprecation warning in sabnews regex"
This reverts commit 4f0b7131e7.
* address minor issues
* integrate fixtures into conftest
* black :/
* harden queue repair test
* try a workaround for extremely slow test runs on windoze
* Correct server detection in functional tests
* move scripts dir inside SAB_CACHE_DIR
* also relocate the generated script
Co-authored-by: Safihre <safihre@sabnzbd.org>
* randomize age for generated nzb files
Useful for testing queue sorting function of the api. Timestamp values are randomly chosen between september '93 and now.
* Sigh.
* deobfuscate: based on newfiles
* deobfuscate: based on newfiles, black-cleaned
* deobfuscate: yet another black try
* deobfuscate: with upgraded black module
* deobfuscate: improved unittests
* deobfuscate: improved unittests
* deobfuscate: improved unittests
* deobfuscate: removed deobfuscate_dir()
* deobfuscate: extra unittests: lite and nasty
* deobfuscate: black try again
* deobfuscate: black try again, and again
* Deobfuscate final files: more intelligence, default obfuscated = True, more unit testing
* Deobfuscate final files: typo's
* Deobfuscate final files: cleanup of is_probably_obfuscated