Commit Graph

32 Commits

Author SHA1 Message Date
Safihre
335ae82a3d Remove text output formatting from API
Closes #2785
2024-01-26 16:20:44 +01:00
thezoggy
9f6a9f9912 normalize and update copyright year 2024-01-02 09:42:17 +01:00
Safihre
7cbbff727f Remove (almost) all references to unused team@sabnzbd.org 2023-07-21 11:33:51 +02:00
Safihre
6492cfb430 Update copyright year to 2023 2023-01-25 22:39:49 +01:00
thezoggy
fb04b58b57 selenium syntax update (#2271)
* handle sab path with spaces

* fix py3.10 win "Unable to remove cache dir"

* remove unused imports

* update selenium find_element(s) syntax

* Fix selenium_wrapper usage

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-08-19 22:25:48 +02:00
Safihre
1dd48743c2 Refactor location of functions from __init__ 2022-01-08 14:21:23 +01:00
Safihre
9c7b61070b Update copyright year to 2022 2022-01-07 09:29:32 +01:00
Safihre
dfb771a51e Add basic tests of nzbparser 2021-12-16 12:49:16 +01:00
Safihre
26cdfc2279 Rework adding of NZB's to use filehandlers (#1994)
* Rework adding of NZB's to use filehandlers

* Use zf.open() instead of zf.read()

* Make SevenZip-class compatible with file handler approach

* Do not attempt to overwrite existing admin-NZB

* Reset pointer when checking for incomplete NZB

* No longer check for incomplete NZB

* Refactor of archived NZB handling
2021-12-12 15:28:46 +01:00
Safihre
2aa0dbd93d Transfer /status/ functions to API-functions
TODO: Update documentation and maybe some tests
2021-07-04 18:03:58 +03:00
Safihre
faf1a44944 Black formatting update 2021-04-26 10:52:11 +02:00
Safihre
59423df0cb Program shutdown could be too fast to complete the last response 2021-01-21 20:26:40 +01:00
Safihre
9cc921098e Allow longer time for test after queue-repair 2021-01-17 13:11:50 +01:00
Safihre
f0bfb08c2e Update copyright year to 2021 2021-01-03 20:43:19 +01:00
Safihre
9f2a9c32c0 Switch to GitHub Actions for CI
Removed the par2 files for the unicode job, they caused too much problems. It's a bad "fix" for #1509.
2020-12-12 16:52:43 +01:00
jcfp
5ea6a31bc2 Api tests (#1668)
* 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>
2020-11-08 18:37:48 +01:00
Safihre
423e4e429b Add functional test for Queue Repair
Relates to #1649
2020-10-24 12:03:24 +02:00
Safihre
719b966709 Reset updated .pot files after pytest 2020-10-02 10:23:37 +02:00
Safihre
433dcab02b Update code-style 2020-08-28 10:12:29 +02:00
Safihre
4420c36889 Speed-up selenium tests by re-using open browser window 2020-06-18 14:18:11 +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
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
6d8c264e90 Update copyright year to 2020 2020-04-25 16:30:38 +02: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
6b3f8bd255 Py3: Remove error.log if it is too big
Including tests
2019-04-21 12:00:51 +02: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
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
2019-03-06 08:54:22 +01:00
Safihre
e5553e254b Py3: Test and code-format Sample-PostProc 2019-03-02 13:18:00 +01:00
Safihre
db6a6798e7 Py3: Show Logging should just be bytes only
Let's not do any unicode stuff!
Closes #1248
2019-02-28 11:51:21 +01:00
Safihre
50ad203aa8 Py3: Fix Show Logging
Closes #1247
2019-02-26 22:21:15 +01:00