From 6790f7fe65490fe13d95ec2fe4b4a63af073fce4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:41:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- qgispluginci/translation.py | 6 ++++-- test/test_translation.py | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/qgispluginci/translation.py b/qgispluginci/translation.py index ec0b3221..b577ad29 100644 --- a/qgispluginci/translation.py +++ b/qgispluginci/translation.py @@ -84,10 +84,12 @@ def __init__( path_to_file=self.ts_file, resource_slug=self.parameters.transifex_resource, ) - logger.info(f""" + logger.info( + f""" Transifex project {self.parameters.transifex_organization}/ {self.parameters.transifex_project} and resource ({self.parameters.transifex_resource}) have been created. - """) + """ + ) else: logger.error( "Project does not exists on Transifex: " diff --git a/test/test_translation.py b/test/test_translation.py index 7de18f42..da82c4e1 100644 --- a/test/test_translation.py +++ b/test/test_translation.py @@ -19,15 +19,15 @@ class TestTranslation(unittest.TestCase): @classmethod def setUpClass(cls): - """ Initialize the test case """ + """Initialize the test case""" with open(".qgis-plugin-ci") as f: arg_dict = yaml.safe_load(f) cls.parameters = Parameters(arg_dict) cls.transifex_token = os.getenv("transifex_token") - cls.assertIsNotNone(cls.transifex_token) - + assert cls.transifex_token + def setUp(self): - """ Initialize the next test method (run between every test method) """ + """Initialize the next test method (run between every test method)""" self.t = Translation(self.parameters, transifex_token=self.transifex_token) def tearDown(self): @@ -42,7 +42,7 @@ def tearDown(self): @unittest.skipIf(can_skip_test(), "Missing transifex_token") def test_creation(self): - """ + """ Translation initialized from setUp, so we 'fake' a new test by tearing it down """