Skip to content

Commit

Permalink
skip decorator at class level (opengisch#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 authored and nirvn committed Aug 1, 2024
1 parent 9326ce7 commit 7e9b288
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 7e9b288

Please sign in to comment.