diff --git a/tests/test_api.py b/tests/test_api.py index b96f5bd..16b50e6 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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, @@ -60,12 +60,12 @@ 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), @@ -73,15 +73,15 @@ def test5_update_source_translation(self): ) 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, @@ -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