(self)
| 34 | |
| 35 | class TestCase(unittest.TestCase): |
| 36 | def test_no_fields(self): |
| 37 | @dataclass |
| 38 | class C: |
| 39 | pass |
| 40 | |
| 41 | o = C() |
| 42 | self.assertEqual(len(fields(C)), 0) |
| 43 | |
| 44 | def test_no_fields_but_member_variable(self): |
| 45 | @dataclass |
nothing calls this directly
no test coverage detected