fix: fix most pylint / type hint warnings/errors

This commit is contained in:
cclecle
2023-09-23 20:03:24 +01:00
parent 5c2b08c865
commit 246d4c9529
9 changed files with 264 additions and 144 deletions

View File

@@ -19,6 +19,9 @@ from src.pygamecfg.__main__ import fct_main
class Testtest_ut99(unittest.TestCase):
def test_normal_TESSTTT(self):
fct_main(["-v", "-g", "ut99", "-b", "test/data/UT99", "GetOption", "ServerPackages"])
def test_normal_ServerPackages(self):
with redirect_stdout(StringIO()) as capted_stdout, redirect_stderr(StringIO()) as capted_stderr:
fct_main(["-g", "ut99", "-b", "test/data/UT99", "GetOption", "ServerPackages"])
@@ -95,6 +98,8 @@ class Testtest_ut99(unittest.TestCase):
self.assertEqual("", capted_stderr.getvalue())
def test_normal_AdminEmail(self):
# fct_main(["-g", "ut99", "-b", "test/data/UT99", "GetOption", "AdminEmail"])
# return
with redirect_stdout(StringIO()) as capted_stdout, redirect_stderr(StringIO()) as capted_stderr:
fct_main(["-g", "ut99", "-b", "test/data/UT99", "GetOption", "AdminEmail"])
# /!\ add '\n' at the end of the string cause Python terminal newline is always this, regardless Windows / Linux os.linesep