@@ -0,0 +1,840 @@
+%22%22%22Tests for titletranslate module.%22%22%22%0A#%0A# (C) Pywikibot team, 2021%0A#%0A# Distributed under the terms of the MIT license.%0A#%0Afrom pywikibot.titletranslate import translate%0A%0Afrom tests.aspects import unittest, DefaultSiteTestCase%0A%0A%0Aclass TestTitleTranslate(DefaultSiteTestCase):%0A%0A    %22%22%22Tests for titletranslate module.%22%22%22%0A%0A    def setUp(self):%0A        %22%22%22Skip sites with empty languages_by_size list.%22%22%22%0A        super().setUp()%0A        if not self.site.family.languages_by_size:%0A            self.skipTest('languages_by_size is empty')%0A%0A    def test_translate(self):%0A        %22%22%22Test translate method.%22%22%22%0A        result = translate(page=self.get_mainpage(), auto=False,%0A                           hints=%5B'5:', 'nl,en,zh'%5D, site=self.site)%0A        self.assertLength(result, 6)%0A%0A%0Aif __name__ == '__main__':  # pragma: no cover%0A    unittest.main()%0A

Add some titletranslate_tests