WeblateOrg / weblate

Unit test class with no tests PTC-W0046
Anti-pattern
Major
3 days ago3 years old
Unittest class APIBaseTest contains no test methods
  40TEST_SCREENSHOT = get_test_file("screenshot.png")
  41
  42
  43class APIBaseTest(APITestCase, RepoTestMixin):  44    CREATE_GLOSSARIES: bool = True
  45
  46    @classmethod
Unittest class VCSSubversionBranchTest contains no test methods
1750        )
1751
1752
1753class VCSSubversionBranchTest(VCSSubversionTest):1754    """Cloning subversion branch directly."""
1755
1756    def clone_test_repos(self) -> None:
Unittest class VCSGitUpstreamTest contains no test methods
 511    _class = GitForcePushRepository
 512
 513
 514class VCSGitUpstreamTest(VCSGitTest): 515    def add_remote_commit(self, conflict=False, rename=False) -> None:
 516        # Use Git to create changed upstream repo
 517        backup = self._class
Unittest class VCSGitForcePushTest contains no test methods
 507        self.assertEqual(self._remote_branch, self.repo.get_remote_branch(self.tempdir))
 508
 509
 510class VCSGitForcePushTest(VCSGitTest): 511    _class = GitForcePushRepository
 512
 513
Unittest class RegistrationTestMixin contains no test methods
 36from weblate.utils.xml import parse_xml
 37
 38
 39class RegistrationTestMixin(TestCase): 40    """Helper to share code for registration testing."""
 41
 42    def assert_registration_mailbox(self, match=None):