fix: fix most pylint / type hint warnings/errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user