Refactor TestCase files into python modules

Convert all TestCase files into standard python modules to be run and
discovered by unittest.
This commit is contained in:
SilentGhost 2024-11-19 20:36:41 +01:00 committed by Hans-Christoph Steiner
parent 4d6682bc70
commit 7ff32bc4b0
34 changed files with 471 additions and 1260 deletions

View file

@ -20,7 +20,7 @@ ignore = "E123,E203,E402,E501,W503"
[tool.black]
skip-string-normalization = true
target-version = ["py38"]
include = '(^fdroid|\.pyi?|\.TestCase)$'
include = '(^fdroid|\.pyi?)$'
# These files will never be included in black runs. To run black on
# one of thes files, remove it from this list.
force-exclude = '''(
@ -49,10 +49,10 @@ force-exclude = '''(
| tests/gradle-release-checksums\.py
| tests/openssl-version-check-test\.py
| tests/valid-package-names/test\.py
| tests/common\.TestCase
| tests/publish\.TestCase
| tests/signatures\.TestCase
| tests/update\.TestCase
| tests/test_common\.py
| tests/test_publish\.py
| tests/test_signatures\.py
| tests/test_update\.py
)$'''