Skip to content

Commit

Permalink
skip decorator at class level (#294)
Browse files Browse the repository at this point in the history
This should fix the errors in PR from dependabot
  • Loading branch information
3nids committed Apr 3, 2024
1 parent db1a104 commit 89999f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
unittest.TestLoader.sortTestMethodsUsing = None


@unittest.skipIf(can_skip_test(), "Missing tx_api_token")
class TestTranslation(unittest.TestCase):
@classmethod
def setUpClass(cls):
Expand All @@ -45,7 +46,6 @@ def tearDown(self):
logger.debug(error)
"""

@unittest.skipIf(can_skip_test(), "Missing tx_api_token")
def test_creation(self):
"""
Translation initialized from setUp, so we 'fake' a new test
Expand All @@ -58,12 +58,10 @@ def test_creation(self):
self.assertTrue(self.t.tx_client.project_exists(self.parameters.project_slug))
self.assertEqual(len(self.t.tx_client.list_resources()), 1)

@unittest.skipIf(can_skip_test(), "Missing tx_api_token")
def test_push(self):
self.t.update_strings()
self.t.push()

@unittest.skipIf(can_skip_test(), "Missing tx_api_token")
def test_pull(self):
self.t.pull()
self.t.compile_strings()
Expand Down

0 comments on commit 89999f0

Please sign in to comment.