Unit test class with no tests PTC-W0046
Anti-pattern
Major
4 days ago2 years old
Unittest class WbRepresentationTestCase contains no test methods
  49    return None  # pragma: no cover
  50
  51
  52class WbRepresentationTestCase(WikidataTestCase):  53
  54    """Test methods inherited or extended from _WbRepresentation."""
  55
Unittest class FakeWin32UncolorizedTest contains no test methods
511        self.ui_obj.stdout.isatty = lambda: self.expect_color
512
513
514class FakeWin32UncolorizedTest(FakeWin32Test):515
516    """Test case to allow doing uncolorized Win32 tests in any environment."""
517
Unittest class FakeWin32Test contains no test methods
493    ui_class = terminal_interface_unix.UnixUI
494
495
496class FakeWin32Test(FakeUIColorizedTestBase, FakeUITest):497
498    """
499    Test case to allow doing colorized Win32 tests in any environment.
Unittest class FakeUnixTest contains no test methods
486                          sum(e[1] for e in self._colors[:self._index]))
487
488
489class FakeUnixTest(FakeUIColorizedTestBase, FakeUITest):490
491    """Test case to allow doing colorized Unix tests in any environment."""
492
Unittest class FakeUIColorizedTestBase contains no test methods
456        self.assertEqual(f.getvalue(), self.expected + '\n')
457
458
459class FakeUIColorizedTestBase(TestCase):460
461    """Base class for test cases requiring that colorized output is active."""
462