Skip to content

Commit

Permalink
Fix: spec chars exception, Refactoring: code formatting using Black (#7)
Browse files Browse the repository at this point in the history
- fixed a UnicodeEncodeError exception that occurs when using special characters in names;
- added an additional test to check special characters;
- formatted the code using Black;
- reworked tests with `unittest` framework.
  • Loading branch information
dnzbk authored Apr 24, 2024
1 parent 333bf74 commit d75571f
Show file tree
Hide file tree
Showing 6 changed files with 576 additions and 524 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
branches:
- feature/*
- master
pull_request:
branches:
- master

jobs:
tests:
uses: nzbgetcom/nzbget-extensions/.github/workflows/python-tests.yml@main
with:
python-versions: "3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12"
supported-python-versions: "3.9 3.10 3.11 3.12"
python-versions: "3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12"
supported-python-versions: "3.8 3.9 3.10 3.11 3.12"
test-script: tests.py
debug: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.vscode
__
__pycache__
tmp
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
## NZBGet Versions

- pre-release v23+ [v3.0](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v3.0)
- stable v22 [v2.0](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v2.0)
- legacy v21 [v2.0](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v2.0)
- stable v23+ [v3.1](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v3.1)
- legacy v22 [v2.0](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v2.0)

> **Note:** This script is compatible with python 3.8.x and above.
If you need support for Python 2.x or older Python3.x versions please use [v1.7](https://github.com/nzbgetcom/Extension-FakeDetector/releases/tag/v1.7) release.
Expand Down
Loading

0 comments on commit d75571f

Please sign in to comment.