Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and why-not-try-calmer committed Feb 21, 2023
1 parent 3750bd9 commit 6790f7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions qgispluginci/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down
10 changes: 5 additions & 5 deletions test/test_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
"""
Expand Down

0 comments on commit 6790f7f

Please sign in to comment.