Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
drop test numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Feb 28, 2023
1 parent f36b77a commit c51f94c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def tearDownClass(cls):
if Path.exists(cls.output_dir):
rmtree(cls.output_dir)

def test1_new_api_satisfies_abc(self):
def test_new_api_satisfies_abc(self):
assert isinstance(self.tx, Tx)

def test2_create_project(self):
def test_create_project(self):
# Done in setUpClass
pass

def test3_create_resource(self):
def test_create_resource(self):
self.tx.create_resource(
project_slug=self.project_slug,
resource_name=self.resource_name,
Expand All @@ -60,28 +60,28 @@ def test3_create_resource(self):
)
assert True

def test4_list_resources(self):
def test_list_resources(self):
resources = self.tx.list_resources(project_slug=self.project_slug)
logger.info(f"Resources found: {resources}")
assert resources

def test5_update_source_translation(self):
def test_update_source_translation(self):
self.tx.update_source_translation(
project_slug=self.project_slug,
path_to_file=str(self.path_to_file),
resource_slug=self.resource_slug,
)
assert True

def test6_create_language(self):
def test_create_language(self):
self.tx.create_language(project_slug=self.project_slug, language_code="fr_CH")

def test7_list_languages(self):
def test_list_languages(self):
languages = self.tx.list_languages(project_slug=self.project_slug)
logger.info(f"Languages found: {languages}")
assert languages

def test8_get_translation(self):
def test_get_translation(self):
path_to_output_file = self.tx.get_translation(
project_slug=self.project_slug,
resource_slug=self.resource_slug,
Expand All @@ -104,15 +104,15 @@ def test8_get_translation(self):
logger.warning(f"Notice that the two files were found to differ:")
stdout.writelines(res)

def test9_project_exists(self):
def test_project_exists(self):
verdict = self.tx.project_exists(project_slug=self.project_slug)
assert verdict

def test10_ping(self):
def test_ping(self):
self.tx.ping()
assert True

def test11_stats(self):
def test_stats(self):
stats = self.tx.get_project_stats(project_slug=self.project_slug)
logger.info(str(stats))
assert stats
Expand Down

0 comments on commit c51f94c

Please sign in to comment.